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

#1 2011-01-25 20:58:16

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

Help in a game!

I am making a new game called "Rooms". Your goal in the game is to go from room to room finding other players and doing quests. To do a quest you need to find a certan item and to find it you need to go in room after room trying out diffrent routes untill finally you find it and then you need to go back to the player. And you keep doing this untill you have compleated the game!

Now in each room you will find 2 or 3 yellow squares. Touching one of them will lead you to another room. Now this is where my bug is. I cant get the script right so you can touch a certan square in each level and get to a diffrent area. This is the script I use for each one:

When flag is clicked
forever
if touching color yellow
and Y possition = -----
And level# = ----
Set level number to -----
Go to ------

Can anyone help?


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

Offline

 

#2 2011-01-25 21:30:20

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: Help in a game!

Just take out the y position sensing.


Crizapples

Offline

 

#3 2011-01-26 20:17:48

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

Re: Help in a game!

yeah but there is multiple places you can go in a level.


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

Offline

 

#4 2011-01-26 20:25:50

Nano511
Scratcher
Registered: 2011-01-20
Posts: 39

Re: Help in a game!

use broadcasting

make it so when it touches a certain block it broadcast nextroom. When stage recieves nextroom switch to room costume. when character recieves nextroom go to x...y...

Offline

 

#5 2011-01-27 16:57:10

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

Re: Help in a game!

So that would be about 300 diffrent brodcats... wow. Any other ways?


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

Offline

 

#6 2011-01-27 17:02:30

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Help in a game!

You could try using an item in a list instead of a broadcast - the sprites and the Stage would wait until an item equals one, then they would all change and set the item back to zero.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#7 2011-01-27 17:49:06

Nano511
Scratcher
Registered: 2011-01-20
Posts: 39

Re: Help in a game!

thats gonna be a long game if it needs 300 broadcast..

Offline

 

#8 2011-01-27 20:37:15

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

Re: Help in a game!

Therre will be a yellow square painted in the background! Touch it and you advance. Does that help?


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

Offline

 

Board footer