Forum Discussion
Arystian-Inglot
6 years agoCommunity Member
[JS] SET OBJECT POSITION
Hello,
is it possible to set an object position (x,y) using javascript when, for example, user clicks the button?
PrzemysławHubis
6 years agoCommunity Member
It is :)
Sample:
https://slchallenges.s3.eu-west-1.amazonaws.com/JSMoveTest/story_html5.html
Source in the attachment
- BrianAllen6 years agoCommunity Member
Przemysław, pretty cool... Took me a minute to figure out your example uses the arrow keys on the keyboard, but I like it!
- Arystian-Inglot6 years agoCommunity Member
Thank you!