Page 1 of 1

Reload using onclick

PostPosted: Thu Nov 30, 2017 7:15 pm
by eeieeio
Hello,

please help. It would be very useful if I could create an object [to use as a button] that I could use the onclick function to reload the scene. I would use this at the end of a game to start over with a fresh scene.

Thanks, eeieeio

Re: Reload using onclick

PostPosted: Fri Dec 01, 2017 10:36 am
by Kilinich
Ctrl-Z ?
Reload button is already in algodoo interface (in player mode on instrument bar).

Re: Reload using onclick

PostPosted: Fri Dec 01, 2017 1:11 pm
by eeieeio
Kilinich wrote:Ctrl-Z ?
Reload button is already in algodoo interface (in player mode on instrument bar).
Thanks kilinich for taking the time to answer. I was aware of the button you mention, but that seems to only redo the last move within a scene. I need an object, such as a square that I would create on the playing area to which I can apply an 'onclick', that will reset the game to its original starting configuration.

eeieeio

Re: Reload using onclick

PostPosted: Fri Dec 01, 2017 5:54 pm
by Kilinich
There is a "reload" button in Algodoo.

1) Set Player mode in any onSpawn {App.GUI.playMode = {sim.running}}
2) Look in bottom instrument panel - [ reload ] button is there

Re: Reload using onclick

PostPosted: Fri Dec 01, 2017 8:41 pm
by eeieeio
Kilinich wrote:There is a "reload" button in Algodoo.

1) Set Player mode in any onSpawn {App.GUI.playMode = {sim.running}}
2) Look in bottom instrument panel - [ reload ] button is there


I'm glad I asked. Thank you kilinich