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 / Jumping Problem

Author
Message
Shadow000
14
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 1st Aug 2010 00:07
Hi all. I'm new at programming and I do manage to struggle through some tutorials and pieces of code, yay me. I like Xeno's RPG tutorial, hope he finishes it . Anyways, there's is one thing I don't really get. Jumping. I can't find any tutorials on the topic, and the other posts I've seen don't help me much. Can someone please explain or atleast point out a tutorial to me? Greatly appreciated.

-The only thing that doesn't require effort is nothing.
-If there's something in this world that you can't buy, that's experience.
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 1st Aug 2010 09:32
Hi Shadow000, welcome to the forums!!! Here is a small program I wrote that demonstrates jumping, I've added comments to explain what each part of the program does.

Here it is


Hope this helps

A clever person solves a problem, a wise person avoids it - Albert Einstein
Shadow000
14
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 1st Aug 2010 17:48
Thanks, I just have 1 question more. What's a boolean? And I want to make jumping in 3D, 1st person view. What should I alter? I am trying to make a game like monster hunter in the DBpro tutorials, just improved a bit

-The only thing that doesn't require effort is nothing.
-If there's something in this world that you can't buy, that's experience.
bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 1st Aug 2010 20:06 Edited at: 1st Aug 2010 20:06
Jumping in 3d is the same as in 2d, because you only jump upwards. You modify the Y position of the player.

A boolean is a true/false data type. It's a variable that only has two values, true or false. (In dbpro, I believe it's integer values 0 and 1, one being true).

Shadow000
14
Years of Service
User Offline
Joined: 31st Jul 2010
Location:
Posted: 1st Aug 2010 20:44
Thanks!

-The only thing that doesn't require effort is nothing.
-If there's something in this world that you can't buy, that's experience.

Login to post a reply

Server time is: 2024-11-23 11:33:56
Your offset time is: 2024-11-23 11:33:56