I don't do much with arrays. This might give you an idea on how to proceed
https://goo.gl/kJEBPW
sorry I appear to have linked back to your file <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed">
let's try again...
https://goo.gl/AbpRj8
how about
https://goo.gl/JGrs7I
might also be worth going through the intro tutorials again to get back up to speed
https://www.scirra.com/tutorials/37/beg ... onstruct-2
https://www.scirra.com/tutorials/253/ho ... tform-game
here is a very much cut down version
https://goo.gl/pyIgDA
you start the jump but then you say "left keydown so play this animation" so the jump animation is cancelled
I was not aware that functions cause any slowdown - surely it depends on the function and its use ?
there is also the "or"
key "a" down
OR
button "start" down : do this (or call function)
Develop games in your browser. Powerful, performant & highly capable.
round(number*100)/100 ?
Are you asking how to do all this or just the time stamp ? If it's just the timestamp then look at wallclocktime or there is a plugin that makes handling time easier (see plugin section)
do you have a "once too far from the playing area " then turn them back towards the center ?
No idea about physics and mass in c2 - sorry. I do know not to mix physics with other behaviours.
I would give each spawn ppoint a timer which is set when they are used - then when you come to pick a random spawn point just discount all with timers running...
Member since 2 Feb, 2013