Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 12/14/19 13:36
Bmap creation - wrong Alpha values
by txesmi. 12/13/19 14:58
A9
by preacherX. 12/11/19 11:01
Error Message 010: invalid stops
by Volker. 12/11/19 08:25
AssetFix & Assets.csv
by MatPed. 12/11/19 07:03
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
7 registered members (Dooley, aventador, Zheka, anufriyev, AndrewAMD, 2 invisible), 707 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
timW, PabloMF, deepscreener, wzschultz, Alit
18342 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 (392 downloads)
gravity.zip (49 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,848
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,848
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,848
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,848
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,127
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,127
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
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