Random scene change?
robinankrett94@gmail.com
Member Posts: 1
Hi I wanted to make a small game. and I've stumbled at the first hurdle.
What i want is for the first scene to change at a random/incalculable time i.e. first scene will change to second scene after 3 seconds then you can restart the game. the next time the first scene will wait 7 seconds before changing to the second scene. is this possible and can anyone help please.
Regards Robin
What i want is for the first scene to change at a random/incalculable time i.e. first scene will change to second scene after 3 seconds then you can restart the game. the next time the first scene will wait 7 seconds before changing to the second scene. is this possible and can anyone help please.
Regards Robin
Best Answer
-
gyroscope I am here.Posts: 6,598
Hi @robinankrett94@gmail.com
Yes, this is possible with the use of boolean attributes as "switches" and the use of scene.time.
if you have trouble getting these to work together, maybe check out the manual if you haven't seen it already (under Help tab at top of this site). Good luck!""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
Sure, if you're no worried about absolute accuracy, you could use a Timer, every0.1 sec
Change Attribute TimeScore to TimeScore +).1
If you wanted to use the scene time, it'd be something like (when finished):
Change attribute TimeScore to scene.Time ---
--this is if the time score starts the moment the scene starts, if not...
Change Attribute StartTime to scene.time
--when finishing:
Change attribute TimeScore to scene.Time-StartTime
I hope that's useful for you.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps