I was working on a different project when I started getting frustrated. It’s been an uphill battle on every scene. It’s been getting annoying. So, I decided to revisit the physics issue. Even though I wasn’t very successful with my other project, my understanding of JavaScript improved. So, I decided to try some different techniques…
On Key Down…
hero.style.left = (parseInt(hero.style.left) + 1) + "px" ;
The theory was that I could move the elements with JavaScript. And yes… I apparently can do that. But unfortunately, it doesn’t work with collision dedication. It’s just another way to make an actor pass right through another actor.
I felt so close to adding game controls to Hype. Unfortunately, the result was not quite what I expected.