Hi,
I'm trying to do what I think is a fairly simple task in a game I am working on...but...I can't seem to get it right!
What I want to do: Change scenes (background) in the game -- basically leave one room and go to another when the main sprite goes to a certain point on the screen.
I have tried to create a small sprite and then use "If Sprite1 touching Sprite2, change background" logic...but the problem is when I play the game, it doesn't seem to recognize that the two sprites are touching?
I would LOVE to view examples of games where the character goes to different rooms.
Please share if you know of some and/or know why, even though I have one sprite positioned over the other my "if/then" command is not "triggering".
THANKS!
Offline
Say something like this for the sprite:
<when green flag clicked><forever><if><color (a color on the sprite) touching color[ brown(the first door. Say the second is pink)<set{backgrounds}to(1) and so on
For the background, say this:
<when green flag clicked><forever><if><(<{Backgrounds}><=>1<switch to costume[1)>and so on.
I hope this helps you.
Offline