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

#1 2009-07-16 01:45:08

EastCoastAnthem
Scratcher
Registered: 2009-07-16
Posts: 3

how do i make the character stop at certain objects? please help!?

i am making a scratch game for a school project.
basically, the game is "escape from school" and the character moves througha series of levels.
however i am having trouble with a very simple aspect- could someone tell me how to make it so that my character cannot go through the desks? kinda like a wall. like, when he gets to it he cannot keep going in that direction, and he must go around.

thanks,

ECA

Offline

 

#2 2009-07-16 07:50:29

Houndolon
Scratcher
Registered: 2009-06-22
Posts: 70

Re: how do i make the character stop at certain objects? please help!?

depending on which type of movement you use, but i'm guessing you arent using velocities...
anyway, you can do it with something like


<forever if><touching[ desk
<change x by(-1  or <change y by(-1

or something in that manner


http://rotasig.com/rotasig2/sigs/Houndolon.gif

Offline

 

#3 2009-07-16 11:37:23

candy0503
Scratcher
Registered: 2009-02-05
Posts: 16

Re: how do i make the character stop at certain objects? please help!?

well my good suggestion is how do you make a game on the scratch program i've made so many projects i haven't made a game yet also scratch is very educational thing thats why i signed up for something creative you can call me candy if you like or candygirl i am a girl what i don't lie to do is go to my babysitters house i also love doing scratch projects <move<say[ it's very wonderful to give someone a hand ]for( 5)secs> also i like everyone on scratch i love to have friends everyone does

your director candy0503

Offline

 

#4 2009-07-16 16:10:25

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: how do i make the character stop at certain objects? please help!?

http://scratch.mit.edu/projects/Paddle2SeeFixIt/188807 for rotating sprite
http://scratch.mit.edu/projects/Paddle2SeeFixIt/188825 for non rotating sprite

Offline

 

#5 2009-07-17 01:49:14

EastCoastAnthem
Scratcher
Registered: 2009-07-16
Posts: 3

Re: how do i make the character stop at certain objects? please help!?

Houndolon wrote:

depending on which type of movement you use, but i'm guessing you arent using velocities...
anyway, you can do it with something like


<forever if><touching[ desk
<change x by(-1  or <change y by(-1

or something in that manner

firstly, what do you mean by velocities? (im fairly new to scratch)
amd also, i basically want the character to appear to keep walking, but not go anywhere. for example like in mario games- he cant just keep walking in a straight line, he has to jump over certain objects. think like that, only without the jumping, since it's kinda in birdseye view.

sorry if im being really confusing, i just really need help- ITS DUE ON WEDNESDAY!
lol

ECA

Offline

 

#6 2009-07-17 03:27:29

EastCoastAnthem
Scratcher
Registered: 2009-07-16
Posts: 3

Re: how do i make the character stop at certain objects? please help!?

never mind, got it sorted!
thanks for your help everyone,

ECA

Offline

 

Board footer