Problem with logistics [SOLVED]
BasGoodboy
Member, PRO Posts: 310
Hey all,
So I have two scenes. A main scene and a blacksmith one.
Once the player buys the complete tier1 set of a dagger, sword and crossbow, the tier set attribute changes to 1, and a new tier of weapons will be unlocked. This all works.
The simplest thing I won't get to work tho, I want the player back on the main scene to have the message: 'you completed a tier set and unlocked new weapons'.
I made the next rules on my main scene:
if daggertier=1
if swordtier=1
if crossbowtier=1
change attribute tier to 1
if attribute tier=1, change attribute tiergratz=1
if attribute tiergratz=1, spawn actor 'display message you completed the set blabla'
after 3 seconds, change attribute tiergratz=2
I did the last attribute change because otherwise I tought the message would keep popping up each time player goes to blacksmith and goes back, untill the tier changes.
BUT.. like this the message will still keep spawning back after player changes scenes.
I want the message just to be popped once, and once only.
How to do this? Please help.
So I have two scenes. A main scene and a blacksmith one.
Once the player buys the complete tier1 set of a dagger, sword and crossbow, the tier set attribute changes to 1, and a new tier of weapons will be unlocked. This all works.
The simplest thing I won't get to work tho, I want the player back on the main scene to have the message: 'you completed a tier set and unlocked new weapons'.
I made the next rules on my main scene:
if daggertier=1
if swordtier=1
if crossbowtier=1
change attribute tier to 1
if attribute tier=1, change attribute tiergratz=1
if attribute tiergratz=1, spawn actor 'display message you completed the set blabla'
after 3 seconds, change attribute tiergratz=2
I did the last attribute change because otherwise I tought the message would keep popping up each time player goes to blacksmith and goes back, untill the tier changes.
BUT.. like this the message will still keep spawning back after player changes scenes.
I want the message just to be popped once, and once only.
How to do this? Please help.
Goodboi Gamestudios | Monster Jumper now on the App Store
Comments
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Goodboi Gamestudios | Monster Jumper now on the App Store
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page