Coin Collect problem when scene reset
my games - scene 1 has :
10 coin collect
3 Traps
1 Life collect
5 monsters..
When my Player died For example : when collide with traps *Reset scene*.?
how can i have the rest of coin,life collects,monster when my player *died* reset scene? is any other way to fix this or need something else.
10 coin collect
3 Traps
1 Life collect
5 monsters..
When my Player died For example : when collide with traps *Reset scene*.?
how can i have the rest of coin,life collects,monster when my player *died* reset scene? is any other way to fix this or need something else.
Best Answer
-
akstudiodevelopment Posts: 93
On each scene, you can have 1 actor "scene_settings" and with in it:
Change attribute Coin to 0
Change attribute Traps to 3
Change attribute Life to 1
Change attribute Monsters to 5
Now if you create this actor as a global (game) actor, then on each scene open it, unlock it and change the reset numbers to those that relate to that level... eg: Level 10 may have 20 Monsters.
This will reset these attributes each time this scene is loaded, be it the first time or when "reset scene" after dying.
Hope this is what you were after??
Answers
on my Attribute - player
-Rules-
Actor Receives event - Overlaps or collides with Actor of type - trap
___________________
Reset Scene
_____________________
Constrain Attribute [Game.life] to [Game.life - 1]
When use Change Attribute [Game.Coin] to [ 0 ] :nothing happen. still have the same coin(image) on my scene after Reset Scene...
I need the rest image(Coin) after reset scene.