Falling objects from the top?

Forum for the book "Beginning Android Games", see http://www.apress.com/9781430230427

Falling objects from the top?

Postby azhan16 » Tue Dec 27, 2016 10:49 am

Hi

I'm new to libGDX and i like to know how to drop several objects from the top?

Thank you
azhan16
 
Posts: 2
Joined: Tue Dec 27, 2016 10:45 am

Re: Falling objects from the top?

Postby vladutelu » Thu Jan 05, 2017 6:12 pm

If you are in portrait mode, try spawning the objects a little over the Y coordinate(above the visible screen) and make Y decrease consantly with something like:
objectY -= gravity, where gravity is the speed which the objecy will fall with.
If you are in landscape mode, try doing the same, but with the X coordinate.

Hope I helped, but keep in mind that I am also new to libGDX, so there is a chance my advice won't work, but it's worth a try :)
vladutelu
 
Posts: 2
Joined: Thu Jan 05, 2017 4:39 pm

Re: Falling objects from the top?

Postby workoni » Sat Nov 18, 2017 6:59 am

sex anal videos free hd http://nsexporn.com
workoni
 
Posts: 13
Joined: Fri Oct 27, 2017 2:36 pm


Return to Beginning Android Games

Who is online

Users browsing this forum: No registered users and 3 guests