Posted: 21st Aug 2003 18:00
You are the sphere, not how you even stay sliding if you rotate. So if you slide to the front and then you rotate to the left you keep sliding to the front. Uhm, you see, I'm not good at explaining things, just look...
+ Code Snippet
sync on
sync rate 40
autocam off
make object sphere 1,100
position object 1,0,0,0
make matrix 1,1000,1000,10,10
zwaarte#=0
speed#=0
do
if leftkey()=1 then yrotate object 1,wrapvalue(object angle y(1)-1)
if rightkey()=1 then yrotate object 1,wrapvalue(object angle y(1)+1)
if upkey()=1
speed#=10
xs#=object angle x(1)
ys#=object angle y(1)
zs#=object angle z(1)
endif
if downkey()=1 then move object 1,-1
speed#=speed#-0.05
if speed#<0 then speed#=0
x#=object angle x(1)
y#=object angle y(1)
z#=object angle z(1)
rotate object 1,xs#,ys#,zs#
move object 1,speed#
rotate object 1,x#,y#,z#
zwaarte#=zwaarte#-0.5
if object position y(1)<=0 then zwaarte#=0
if object position y(1)<=0 then position object 1,object position x(1),0,object position z(1)
if object position y(1)=0
if spacekey()=1 then zwaarte#=20
endif
position object 1,object position x(1),object position y(1)+zwaarte#,object position z(1)
position camera object position x(1),object position y(1)+110,object position z(1)
rotate camera object angle x(1),object angle y(1),object angle z(1)
move camera -140
sync
loop
Posted: 21st Aug 2003 18:37
Nice code! Maybe I will use it in my game!
Posted: 21st Aug 2003 18:39
kinda hard to see because of camera angle and it moved very fast on my pc, but i did get the idea and i can see how it could be used for skidding in a car game
Posted: 21st Aug 2003 18:39
Thank you DragonCoder...

BTW DragonCoder is my little brother...
Posted: 21st Aug 2003 18:40
Ah you posted in the exactly same minute, yeah I made it in DBClassic... So it could be something to fast on DBPro. You did run it in DBPro, didn't you? Thank you for your reply.

EDIT: I changed the code, please look at the first post, I've now added sync rate 40, I hope that will help.
Posted: 21st Aug 2003 19:03
Yeh that helps! nice code well done well done
Posted: 21st Aug 2003 20:55
Ohh skidding!!!! Will test later!!!
Posted: 21st Aug 2003 22:02
dude brothers! i wish i had a bro that liked programming it would be cool i found adding sync rate helped and its great well done!
Posted: 21st Aug 2003 22:07
Thanks! But my brother isn't to old, but he learns pretty fast, he's only eleven. But you're right, it's nice to have a brother that likes it too.
Posted: 21st Aug 2003 23:46
i hate it when he is make a game so i look what he was doing and i like it
Posted: 24th Aug 2003 4:03
Yes, and now he became a modeller and he's now in my team. And believe it or not, he's pretty good at it. Only objects till now, nothing living, but I think he will be able to learn it.
Yes, it's nice to have a brother to like things too, and I suck at modelling, and he likes modelling, so that's even better!