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 / How to use move object?

Author
Message
Forest
18
Years of Service
User Offline
Joined: 29th May 2006
Location:
Posted: 6th Jun 2006 22:32
Help I am trying to do the most simple thing, just move objects using MOVE OBJECT but I cant seem to get them to move.
I think it must be something to do with sync?
This code makes the box and it should move towards me I think but it don't!
Forest
18
Years of Service
User Offline
Joined: 29th May 2006
Location:
Posted: 6th Jun 2006 23:22
Here is the code:-

Sync on
color backdrop rgb(255,255,255)
sync
make object box 1,1,1,1
position camera 0,0,-100
point camera 0,0,0
sync
move object 1,-10
sync
wait key
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jun 2006 00:39 Edited at: 7th Jun 2006 00:39
Do you use Gimp Forest?

Anyway.....

You need to make a loop with the move command inside, and just 1 sync in the entire program.

So you have....

Sync on
color backdrop rgb(255,255,255)
make object box 1,1,1,1
rotate object 1,0,90,0
position camera 0,0,-100
point camera 0,0,0
Do
move object 1,1
Sync
Loop

I needed to rotate the object to show you it moving.

Forest
18
Years of Service
User Offline
Joined: 29th May 2006
Location:
Posted: 7th Jun 2006 20:02
Thanks, I didnt realise that, the tutorials I have read have not made that clear. All the examples I have seen have been for pressing a key to get an object to move so I could see why a loop was necessary in that situation.

Getting there!

Login to post a reply

Server time is: 2024-09-25 01:34:30
Your offset time is: 2024-09-25 01:34:30