When i touch the scene start to blink
kajuto
Member Posts: 314
hi therez!! recently i made a level menu when i touch the level 1 i enter to play when i lose, it show a Lose Menu and a button called Level Menu and when i want to play again the level 1 , the scene start to blink, why?~?~?~?~??~?~? i'm dunno.... =-(
Help, thaks in advance
Help, thaks in advance
Comments
When you start a new game, you need to reset all the attributes involved ..
And by the way this is not miscellaneous at all
Roy
Backed up to my folder..
Roy.
Just ignore use mate..
As for your problem , you said :
"when i want to play again the level 1"
When you want to play again you need to reset your attributes for the new play , like if you have an attribute called "game over" reset it back to false etc ..
Roy.
Roy.
when touch is pressed
-change image
-change scene to Level Menu, otherwise change image
-when touch is pressed
-play music) all that in the Level Menu Button inside the "Lose Scene"
If you want , you can send me the project file to - roysadaka (at) gmail (dot) com
and ill take a look at the problem .
Cheers.
Roy.
When you reset your scene , just before you make the reset ,
change attribute "health bar" to 100
Roy.
the health bar width is 100, and when it reach to 0 if i want to recover the health bar to full, is 100 right the same of the width of the bar?
Have you tried the "reset scene" behavior ?
Mate if you can't send over the project you gonna have to be more informative , either upload some images of the code or make a video that shows the problem.
Its impossible to understand what you are asking with so little info.
Roy.
1) game attri i put a index called health bar , in the middle i set to 10
2) in the health bar actor i put 2 constraint like T-shirtbooth did
a) constrain self size width to game health bar * 10
b) constrain self position x to 10+(self size width/2)
3) inside this same actor a rule
When Att game health bar = 0
after that i put a pause game behavior that go to the Lose Menu Scene
4) Also a Change Att
a) game collectable item to game collectable +1
that's the game is side scrolling like mario, when collected a item +1 and other item -1 , when the health bar reach to 0 and i play again the same level it blink, only when the health bar reach to 0, but when i fell down it show the same lose menu scene and i try to play again it's doesn't happen anything, so i deduce the prob is the health bar
Roy.