1802
(Matteo Discardi)
March 6, 2017, 6:39pm
1
Hi all.
I’m building an action with Physics. Everything goes fine, but I need that to start an action when an object goes hover another object. Think about a pinball, I need an action that reset the timeline when the ball touch the bottom bar.
is it possibile?
Thank in advance
jonathan
(Jonathan Deutsch)
March 25, 2017, 1:49am
2
There's not currently a built-in way, but there were some previous threads where other users came up with solutions. I recommend checking out:
It may be worth you looking at this thread.
And adding your sound when the collision is detected using the techniques in the thread.
and the longer:
I was looking in the former forums and found that they have a way for global variables that can be run by "The window object is a global object shared by all Javascripts running
on a page and thus can be used to hold information needed across more
than one Hype scene. " Ryan Nielsen
link: http://hype.desk.com/customer/portal/questions/315362-global-variables
I did this VERY simple thing that memorize the score into the next scene using “window”. The question, is that whenever you add a new s…