Time event
Gamepenciler
Artist/Game DeveloperMember, PRO Posts: 326
For example I want to create a coin bonus pop out that is specifically date every 25th of every december. Is that possible? how can I link the attribute to a specific time?
Artist/Game Developer / Animator at your service..
Comments
Hi @ecanhoj Make a boolean, let's call it CoinBonus
In an actor (even outside of the visible scene) put
Rule: When game.Clock.Month = 12 and game.Clock.Day = 25 ---also add game.Clock.Hour & game.Clock.Minute if you wanted--
Change Attribute CoinBonus to true
And in your bonus coin actor
When CoinBonus is true
Change Attribute CoinBonus to false
Change X position or alpha to 1, etc….
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Artist/Game Developer / Animator at your service..
Keep in mind that if the coin bonus is a real game changer then some players will reset the device clock multiple times to stack up a nice collection of coins. I would!
Artist/Game Developer / Animator at your service..
If date = 25/12/2013 and christmas2013 = false
give gift
Set christmas2013 = true
Save attribute christmas2013
If date = 25/12/2014 and christmas2014 = false
give gift
Set christmas2014 = true
Save attribute christmas2014
If date = 25/12/2015 and christmas2015 = false
give gift
Set christmas2015 = true
Save attribute christmas2015
etc...
They can still put their clocks forward but they'll only ever get the gift once
But if you just want to check the calendar day you don't need it.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Artist/Game Developer / Animator at your service..