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 / conitinual rotation

Author
Message
hpfan273
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 5th Feb 2007 17:46
how do i set an object to spin... like... a loop kind of spin... lol.... hard to explain.... but like a top... how do i get it to spin like a top....

THANKS FOR STOPING AT A RED LIGHT... AND LETTING ME CRASH INTO YOU AT 80 MILES AN HOUR!!!
Hayer
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 5th Feb 2007 17:53
do
spin code here
sync
loop



Mess with the bests, die like the restes!
hpfan273
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 5th Feb 2007 17:56
yea.... i know that much.. lol.. but what IS the spining code thing...... lol... srry

THANKS FOR STOPING AT A RED LIGHT... AND LETTING ME CRASH INTO YOU AT 80 MILES AN HOUR!!!
Vampiric
17
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 5th Feb 2007 18:05
yrotate objectNumber,object angle y(object number)+0.1

there ya go

Computer says n00bed
Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 5th Feb 2007 23:24
Do you want a wavy spin, like when a top is slowing down?
hpfan273
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location:
Posted: 6th Feb 2007 01:54
no...... i am trying to spin a ball.... lol...

THANKS FOR STOPING AT A RED LIGHT... AND LETTING ME CRASH INTO YOU AT 80 MILES AN HOUR!!!
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 6th Feb 2007 02:52 Edited at: 6th Feb 2007 02:53
two ways



get that variable then



after here are your two choices



if not that one use this



either of these should work if not make sure you tell me

~Kieran
citybee
17
Years of Service
User Offline
Joined: 27th Jan 2007
Location:
Posted: 6th Feb 2007 02:58
is this dbc or dbp? because my db pro isnt recognizing the
Quote: "
global s# = 2
"


is it because you are using DB classic?

thx
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Feb 2007 03:07 Edited at: 6th Feb 2007 03:11
No, it's DBPro (Classic doesn't have the Global type).

global s# = 2

is wrong and should be:

global s# = 2.0

I do wish people wouldn't keep using float variables but only store integers in them!

TDK_Man

Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 6th Feb 2007 08:43
oops my bad, lol sorry again....

also i usually find i cant set a global higher than 0, i have to use this instead

global s# as float
s# = 2.0

~Kieran

Login to post a reply

Server time is: 2024-09-25 17:30:38
Your offset time is: 2024-09-25 17:30:38