A drop in the basket


(Greg) #1

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.

Credit Nick Gressle for the Art Work…

appledrop.hype.zip (167.9 KB)


Tips and Tricks of the Month
(Nick ) #2

Now drop letters
catch all the letters to spell APPLE
If you miss a letter start the scene over again :smile:


#4

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.


(Nick ) #5

What Daniel said :wink:


#6

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.


(Greg) #7

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.


#8

Would be an interesting challenge!


(Mark Hunte) #9

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…


(Greg) #10

I like it, no javascript needed.


(Mark Hunte) #11

Already started playing but not getting far with behaviour of apple mishaps…

appledrop.hype 2.zip (294.8 KB)


(Hans-Gerd Claßen) #12

sthg simular. it’s just vice versa: shooting instead of caching


#13

That’s cool @h_classen! Thanks for sharing the file. Interested to find out how you coded this.


#14

@MarkHunte That’s already a nice startingpoint for a catching game! I’m trying to figure out how to implement a random apple emiitter.


(Mark Hunte) #15

@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


#16

PhysicsJS looks interesting indeed. Thanks again for sharing your thoughts!


(Mark Hunte) #17

Yer not sure we could get it to work though…


#18

Gif of the month! (and an awesome demo, of course)


#19

That’s nice sir, great work!