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.

DarkBASIC Discussion / I kinda need some help i am a noob

Author
Message
UltimateDemon13
21
Years of Service
User Offline
Joined: 9th Feb 2004
Location: United States
Posted: 10th Feb 2004 01:27
I really need 2 know a couple of things first i need to know how to set a gravity and how 2 create it where the person can't fall off the edge:

I have already made the matrix and made it where you can look with the mouse i just nee those 2 things.
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 10th Feb 2004 01:55
for #1:

Create a float: gravy#
in your do-loop, write this:

if spacekey()=1 and jump=0 then jump=1:a=0
if jump=1 then a=a+1:gravy#=sin(a#)*50
if a>=180 then jump=0
endif



For #2:

use get ground height

UltimateDemon13
21
Years of Service
User Offline
Joined: 9th Feb 2004
Location: United States
Posted: 10th Feb 2004 02:32
That code for #1 didn't work i can send you part of the program the part i am tring to fix here it is

Login to post a reply

Server time is: 2025-05-22 17:13:45
Your offset time is: 2025-05-22 17:13:45