Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / GOD JUMPING!!!!!!

Author
Message
Jonny_S
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 31st Oct 2002 18:01
This jumping is getting to me HELP! im using DB V.1.08 CODE PLZ!
monkey by day, crime fighting sex god by night
Stevil
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Australia
Posted: 1st Nov 2002 04:40
Bit more info would be appreicated. But for general jumping adivce I suggest you research gravity a little. Tis a basic concept of what goes up most come down pretty much.

Puffy
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 1st Nov 2002 05:51
but what if there is wind??? didnt think of that did ya stevil
Shadow
22
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 1st Nov 2002 22:34
To make realistic jumping you want to be concerned with acceleration (due to gravity). For example:

ground# is the y position of the ground
pos_y# is the y position of your object
vel_y# is the downwards velocity of your object
grav# is the gravitational acceleration

Zenders
22
Years of Service
User Offline
Joined: 4th Oct 2002
Location:
Posted: 2nd Nov 2002 21:37
`at the start of the jump:pos_y#=270 (or thereabouts) and tags(1)=1

`to make the jump curve shorter, make jumplen# greater
`to make the jump last longer, make change# shorter

`OK, pos_y#=newyvalue(posy#,ang#,jumplen#)

if tags(1)=1

if ang#>180
ang#=ang#+change#
endif

`and if you want the jump to propel you towards the ground

if ang#<90
ang#=ang#+change#
endif

endif

`and of course

if position#(1)<get ground height... etc
position#(1)=get grou...
tags(1)=0
endif

`lol thats short and confusing... but hopefully it might `help (though not be v. realistic - but it's still a `parabola)

PS Shadow Spirit - nice one i've never thought of doing it like that before...

Shadow
22
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 5th Nov 2002 21:06
You can do realistic motion easily using velocities and acceleration.

Here's a pretty good program:





(Hope next bit works)
You'll need this file too ('save.matrix'):

ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ž
¶>ÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÞŠAÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂÂÏÀÂIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃIýÃ+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;Ã+q;ÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃúeÃb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…Ãb¬…ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–ÃÒÍ–Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ãú¯¥Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã²Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã¦Ü»Ã?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃ?ÒÂÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃBáÆÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃ:ùÇÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆÃRÆû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?Áû?ÁÃ臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹Ã臹ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃM ¯ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡ÃÞô¡Ãšs’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’Ús’åÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀåÀÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZÃæPZæÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/æÙ/ÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃŽÃÃ7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§Â7u§ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
ÂëÈ
Â

Login to post a reply

Server time is: 2024-11-23 18:23:05
Your offset time is: 2024-11-23 18:23:05