Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, TipmyPip), 865 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Tip of the Week #9: Gravity and Jumping? No Problem! [Re: Superku] #434482
12/19/13 10:58
12/19/13 10:58
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
Thanks! The code works even better! One more thing I noticed is that there can be some circumstances where downward speed is applied until the maximum downward speed is reached (-90 in the example code) which would be undesirable. In the attached image I have created another dummy entity that does nothing but act like an obstacle. The player can jump above it and hang off the other entity, accumulating downward speed that is not applied until the player moves off.

Attached Files shot_0.jpg
gravity.zip (130 downloads)
Re: Tip of the Week #9: Gravity and Jumping? No Problem! [Re: CanadianDavid] #434483
12/19/13 11:15
12/19/13 11:15
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You will encounter at least 100 other problems with this or with any other movement code/ basis this short. Movement codes are not simply using a single or two provided engine functions but oftentimes consist of tens of thousands lines of code.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Tip of the Week #9: Gravity and Jumping? No Problem! [Re: Superku] #434484
12/19/13 11:27
12/19/13 11:27
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
It's really not a problem at all; I'm just posting my results with this code. Thank you for sharing!

Re: Tip of the Week #9: Gravity and Jumping? No Problem! [Re: CanadianDavid] #434490
12/19/13 13:22
12/19/13 13:22
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Feel free to add your discoveries and fixes to the wiki article (I think adding it at the bottom of the article would be best)!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Tip of the Week #9: Gravity and Jumping? No Problem! [Re: Superku] #478246
09/25/19 08:16
09/25/19 08:16
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Since there are no working links (at least I couldn't find any), here is the gravity code (the latest one I have) hosted on my webpage:
Download link

PS: thank you jcl for not even trying to run back acknex wiki.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1