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

#1 2012-06-12 22:55:16

ZebraCrazy122
New Scratcher
Registered: 2012-05-16
Posts: 6

Please Help Me With Scripts

OK, so in the game pacman the sprite is unable to touch or pass the walls. How do i do that?

Offline

 

#2 2012-06-12 23:35:05

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Please Help Me With Scripts

ZebraCrazy122 wrote:

OK, so in the game pacman the sprite is unable to touch or pass the walls. How do i do that?

Depends.  Are you using one sprite for all of the walls? Or are they just on the stage picture? Or are there different sprites for the wall parts?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2012-06-13 02:02:26

ZebraCrazy122
New Scratcher
Registered: 2012-05-16
Posts: 6

Re: Please Help Me With Scripts

The walls are in the stage picture.

Offline

 

#4 2012-06-13 02:23:25

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Please Help Me With Scripts

Use this script for the sprite.

when gf clicked
forever if <tocuching colour [wall colour]> // substitute wall colour for whatever colour your walls are.
go to [start position] // would be x -- y -- block. These co-ordinates are up to you.
end

Offline

 

#5 2012-06-13 05:15:46

ZebraCrazy122
New Scratcher
Registered: 2012-05-16
Posts: 6

Re: Please Help Me With Scripts

Sorry, i guess i was not as specific. I would like to know how to play the game and be able to touch the walls without anything happening but just not be able to pass over it.  Thank you though.

Offline

 

#6 2012-06-13 05:53:05

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Please Help Me With Scripts

I think I saw a similar thread like this...


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer