Discuss Scratch
- Discussion Forums
 - » Help with Scripts
 - » Script Bug. I have no idea why this happens i have no script telling the project to do this.
        
         
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
My browser / operating system: MacOS Macintosh X 10.10.5, Chrome 59.0.3071.115, Flash 26.0 (release 0)
https://scratch.mit.edu/projects/169707528/
The project above has a glitch that does not logically make sense. this glitch makes the movement of the green character (wsad keys) wrong.
Then you move the black character (arrow keys), it moves perfectly fine. but, when you move this character, the collision status for it is seemingly transferred to the black one. So, for example, if the black character is running into a wall above it, the green character can't move up either. If the black character is moving around and not colliding with anything, the green character completely ignores all collisions and can walk through walls.
The only time this bug is not present is when the black character is not moving at all, in which the green character moves fine.
The coding structure will stay, I am away that you could do this pretty fast in another style (e.g., clones).
Have fun trying to get this one.
if you need any info on the bug, I have been trying to debug this for quite a while now, so I can probably help you.
Thanks!
                        
                            https://scratch.mit.edu/projects/169707528/
The project above has a glitch that does not logically make sense. this glitch makes the movement of the green character (wsad keys) wrong.
Then you move the black character (arrow keys), it moves perfectly fine. but, when you move this character, the collision status for it is seemingly transferred to the black one. So, for example, if the black character is running into a wall above it, the green character can't move up either. If the black character is moving around and not colliding with anything, the green character completely ignores all collisions and can walk through walls.
The only time this bug is not present is when the black character is not moving at all, in which the green character moves fine.
The coding structure will stay, I am away that you could do this pretty fast in another style (e.g., clones).
Have fun trying to get this one.
if you need any info on the bug, I have been trying to debug this for quite a while now, so I can probably help you.
Thanks!
Last edited by Code_Pi (July 25, 2017 12:41:42)
- asivi
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
Hi, i was moving up the green character and it is trespassing black lines without moving the black charaacter even not one time, Is it supposed to happen?
I mean, is it the intended behavior?
                        
                            I mean, is it the intended behavior?
Last edited by asivi (July 15, 2017 00:25:34)
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
Hi, i was moving up the green character and it is trespassing black lines without moving the black charaacter even not one time, Is it supposed to happen?
I mean, is it the intended behavior?
no, the black lines are the areas where your not supposed to trespass
- asivi
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
Also let me suggest to use clones, seems to me you are overcomplicating simple tasks.
Good luck.
                        
                        
                    Good luck.
- asivi
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
I forgot, why you have an exact copy of this topic in bugs and glitches?
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
I forgot, why you have an exact copy of this topic in bugs and glitches?because I think it could be a scratch glitch. also, I am not doing it in clones, I stated above that the structure stays.
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - footsocktoe
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
I guess you fixed it. Worked fine when I tried it.
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
I guess you fixed it. Worked fine when I tried it.nope. did you try the glitches stated above?
Last edited by Code_Pi (July 15, 2017 02:56:12)
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
.
                        
                        
                    - -XxX-MEOW-XxX-
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
1) It's probably the fact that it's a clone in the same sprite as the black character.
2) Please bump only once every 24 hours.
Hope this helps! Good luck!
                        
                        
                    2) Please bump only once every 24 hours.
Hope this helps! Good luck!
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
1) It's probably the fact that it's a clone in the same sprite as the black character.no clones are being used
2) Please bump only once every 24 hours.
Hope this helps! Good luck!
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
1) It's probably the fact that it's a clone in the same sprite as the black character.no clones are being used
2) Please bump only once every 24 hours.
Hope this helps! Good luck!
- footsocktoe
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
I guess you fixed it. Worked fine when I tried it.nope. did you try the glitches stated above?
Yes, it did what it is supposed to do and when the black sprite was against a wall the green sprite still moved freely.
Are you testing it in the player window or the editor window?
- Code_Pi
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
both. what is you operating system?I guess you fixed it. Worked fine when I tried it.nope. did you try the glitches stated above?
Yes, it did what it is supposed to do and when the black sprite was against a wall the green sprite still moved freely.
Are you testing it in the player window or the editor window?
- footsocktoe
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Script Bug. I have no idea why this happens i have no script telling the project to do this.
My browser / operating system: Windows 7, Microsoft Internet Explorer 11.0, Flash 26.0 (release 0)
                        
                        
                    - Discussion Forums
 - » Help with Scripts
 - 
            » Script Bug. I have no idea why this happens i have no script telling the project to do this. 
         
            


