Making an item appear to drop inside of another item.
In this example, I split the basket into two pieces and used the “Arrange” menu to send the “top piece” (basket 2.png) to the back and the “bottom piece” (basket 3.png) to the front, then I sent the apple backwards just once. This makes it appear that the apple goes inside of the basket.
This is the place for Hype questions. If you have something related to this thread, you can post it here. If not, please create a new post with your question.
In Flash I once made a game with apples falling from trees. The player was supposed to catch as many as possible in a basket. Is a game like that possible with hype? Physics and collision detection should do the trick wouldn’t it? The basket should be draggable and the apples should fall random from the trees. Could be a fun project in Hype.
It’s possible, we would have to figure out a way to keep the apples in the basket when you drag it. Maybe we could hide the apples when they enter the basket with a small javascript.
If the Basket is right at the bottom of the scene you could just let them fall through the bottom of the basket and off scene, so long as the is no gap. Which could be covered with grass in front of the basket…
@Olav I tried cloning an Apple which I could then generate at random times and places, which is really easy enough to do.
But alas the Physics properties do not clone over. I think due to they are designated within javascript code in the generated hype js.
@Daniel do you guys know of a way to assign/clone Physics properties to a cloned element node this way?
I just found PhysicsJS which shows it can be done but maybe using some thing like PhysicsJS