Play animation at defined location on the Scene


#1

Is there a way to play an animation at a defined location (x/y) on the canvas using javascript?
(i.e. after a button is pressed)


(Mark Hunte) #2

The tantalising answer is yes but without more detail of how you are setup and actually trying to do, we can only guess at an answer that would suit.

Also when you use key words like canvas you may not get the answer you expect because you are using a term with no context but which has many meanings within different contexts.

i.e Canvas, Hype Scene

Can you provide more concise detail and possibly an example project.

Cheers


#3

I wanted to dynamically control where an element is placed within the scene using JS.

It kind of works with this:
document.getElementById(“object1”).style.left = 100 + “px”;


(Mark Hunte) #4

Have a look at setElementProperty()