I have a problem; I'm making a scrolling game but I can't figure something out: I have little platforms that You can stand on. But, if you run at it from the side, you go right through it. How do I make it so you cannot walk right through it?
I'm thinking of games like God's Quest. Please only reply if you have a game like this yourself. I'm waiting!!
Last edited by EzraB (2012-10-17 20:35:23)
Offline
EzraB wrote:
do you think you could do a simpler script?
Nope, that is the simplest I can deliver. Perhaps, if you are that new to Scratch, you should try and program something a little bit more simple. That, or just copy the script.

Offline
EzraB wrote:
I'm not new to Scratch, I just mean those variables are probably in other scripts, so I don't know what to do with them.
![]()
The sensing is done in a way so that it's kind of meant to be used like that. If you still have a problem, you can set the variables to "This Sprite Only" and then use the ([can_move_up] of [Sensor Sprite]) instead of the variables for the sprite that you want to move around, that way it shouldn't clash with any other variables. That and you can also change the variables names to something different, like "up_blocked".
What other scripts could they be in?
http://scratch.mit.edu/projects/Magnie/2831834 is an example of scrolling, sensing, and gravity all combined, you might also be interested in looking at http://scratch.mit.edu/projects/Magnie/2833758 as well.
Last edited by Magnie (2012-10-18 01:58:25)
Offline