Hello im new here and need some help with my game i want it so that when the character gets to the end of the screen it changes to the next level i cant seem to figure it out
Offline
You can make the end of the screen a specific colour, and put this in the main sprite:
When flag clicked
Forever
If touching colour colouroftheendofthescreen
Broadcast next level
EndIf
EndForever
Is that what you wanted?
Offline
yeah thanks but need that for like 4 levels and i need him to go to the start of each level
Offline
topsnakebite wrote:
yeah thanks but need that for like 4 levels and i need him to go to the start of each level
Change 2l84zwamani's script to look like this:
When flag clicked set level to 1 Forever If touching color (color) change level by 1 Broadcast next level EndIf EndForever When I receive next level If level = 2 go to x: __ y: __ EndIf If level = 3 go to x: __ y: __ EndIf If level = 4 go to x: __ y: __ EndIf
Offline