This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-17 20:32:21

EzraB
Scratcher
Registered: 2012-03-06
Posts: 29

How?

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?  sad  I'm thinking of games like God's Quest. Please only reply if you have a game like this yourself. I'm waiting!!  hmm

Last edited by EzraB (2012-10-17 20:35:23)


I think life should have a few simple meanings: Love. Pulled pork sandwiches. You. Me. Video Games. EzraBsmile

Offline

 

#2 2012-10-17 20:54:39

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: How?

This should help  smile


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#3 2012-10-17 21:44:06

EzraB
Scratcher
Registered: 2012-03-06
Posts: 29

Re: How?

hmm  do you think you could do a simpler script?


I think life should have a few simple meanings: Love. Pulled pork sandwiches. You. Me. Video Games. EzraBsmile

Offline

 

#4 2012-10-17 21:47:34

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: How?

EzraB wrote:

hmm  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.


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#5 2012-10-17 21:51:34

EzraB
Scratcher
Registered: 2012-03-06
Posts: 29

Re: How?

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.  sad


I think life should have a few simple meanings: Love. Pulled pork sandwiches. You. Me. Video Games. EzraBsmile

Offline

 

#6 2012-10-18 01:56:33

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: How?

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.  sad

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.  smile

Last edited by Magnie (2012-10-18 01:58:25)

Offline

 

Board footer