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 / NEXVALUE problem

Author
Message
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 17th Jan 2004 04:26
When I use the NEWXVALUE() command.DarkBASIC says it's an unknown command.if somebody know why happen that,please tell me.



I'm using DBC,I think I'm using DBC Enchanted because when I execute DarkBAsic it's say "ENCHANTED".

Is just of those days when you don't wanna wake up everything is *****, everybody sucks you really don't know why, but you wanna justify rippin' someone head off!
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 17th Jan 2004 04:30 Edited at: 17th Jan 2004 04:30
did you put curent value, angle value, distance value?

try

nx=newxvalue(x,180,5)

I dont know how to spell
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 17th Jan 2004 04:48
I have two put a variable to stored that data?
Cuz maybe that's the problem

Is just of those days when you don't wanna wake up everything is *****, everybody sucks you really don't know why, but you wanna justify rippin' someone head off!
PiratSS
22
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 17th Jan 2004 05:09
Umm, X#=NewXValue(...)

Dual AMD Athlon MP 2x1GHZ | IBM 15000Rpm SCSI 73.4 Gb X 2 | e-GeForce Ti4400 | Audigy 2 + 7.1 Surround sound | 17' Monitor | Ugly mouse
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 17th Jan 2004 09:47
you virsion of DB is enchanted? wwoooowww

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Jan 2004 19:25
NewXValue(current position X, angle, distance)

The code for the function itself would probably look something like this.


function newXValue(x#, angle#, dist#)
x# = x# + cos(angle#) * dist#
endfunction x#

"eureka" - Archimedes

Login to post a reply

Server time is: 2025-05-22 14:40:16
Your offset time is: 2025-05-22 14:40:16