Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Plat-former Right Key doesn't work.
- BF10
-
Scratcher
500+ posts
Plat-former Right Key doesn't work.
Project
Go to the sensor sprite / sprite next to it and press the broadcast platformer (or start platformer).
It work fine, except the right arrow. The right arrow does nothing (except make stickman moving animation work). Stickman won't move right.
Anyone help?
Go to the sensor sprite / sprite next to it and press the broadcast platformer (or start platformer).
It work fine, except the right arrow. The right arrow does nothing (except make stickman moving animation work). Stickman won't move right.
Anyone help?
- Tymewalk
-
Scratcher
1000+ posts
Plat-former Right Key doesn't work.
I also notice that moving left will let you fall off of the edge.
- Tymewalk
-
Scratcher
1000+ posts
Plat-former Right Key doesn't work.
Aha! Found the problem. In your sensor:
Changing the color fixes it, but I don't know why.
There are also other problems, like sometimes falling through the floor, and walking out of the level (as I said before), but this fixes the problem you were having.
if <key [right-arrow v] pressed?> then
change x by (5)
if <touching color [#000000] ?> then
change x by (-5)
end
end
Changing the color fixes it, but I don't know why.
There are also other problems, like sometimes falling through the floor, and walking out of the level (as I said before), but this fixes the problem you were having.
- BF10
-
Scratcher
500+ posts
Plat-former Right Key doesn't work.
Never mind. As a result, you will be mentioned in my game. I fixed the other bugs by adding lava to the sides and adding more levels. Thank You!
Last edited by BF10 (May 28, 2015 12:39:53)
- Discussion Forums
- » Help with Scripts
-
» Plat-former Right Key doesn't work.