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

#1 2010-05-04 08:35:13

zippolulu
Scratcher
Registered: 2010-05-04
Posts: 9

Need help with my pacman game

If I draw a maze in the stage and use the "if touching color" to let my pacman know when to not cross the line. What piece of code will I use to not making her cross the line.
Now it just works with "go to sprite". My pacman goes back to the starting point (in my case sprite no 4).
Is there a piece(s) I can use to let the pacman just stop by the line or do I have to draw every line and program them?
Thanks

[blocks]
<when green flag clicked>
<forever>
<if><touching color[green] <go to[sprite4]
[/blocks]

Offline

 

#2 2010-05-05 14:55:24

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Need help with my pacman game

I didn't get a word of that, but try looking at the pacman sample game.

Also I don't normally have a starting point sprite. I just remember the xy position and use the

[blocks]<go to x sad   )y sad  [/blocks]

block.

Last edited by Stickman704 (2010-05-05 14:55:41)


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#3 2010-05-14 19:48:31

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: Need help with my pacman game

I know how to make this work, but can   you upload what you have so far so I can take a look? It would be easier to help you.  smile

Offline

 

Board footer