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 / Hello!! n00b with a 2d problem. (simple one)

Author
Message
KamaKase
21
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 29th Oct 2002 21:11
Hi guys. Errrmmm, I know this isn't a question which actually concerns progamming; but how exactly do you type a vector?
I'm trying to move a sprite. And I can't do it. I know a vector is a speed and a direction. but how do I type it?
Is it
(Speed, NE)
or what?? It didn't say in the help file. Please Help.
Cheers!
KamaKase
21
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 29th Oct 2002 21:48
AAww, please help.

The flying babel fish
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 29th Oct 2002 22:28
It doesn't work like that in programming. All you do is increase the x or y each loop
e.g:
do
graphicx=graphicx+1
graphicy=graphicy+1
sync
loop
every time it goes through the loop it will recalculate the graphics x and y and reposition it
Super Teo
21
Years of Service
User Offline
Joined: 18th Sep 2002
Location: Sweden
Posted: 29th Oct 2002 22:29
Or if you have DBP Use the Move Sprite command



if you wanna turn the sprite just rotate it
KamaKase
21
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 29th Oct 2002 22:45
thanx!!

Login to post a reply

Server time is: 2024-03-29 11:49:17
Your offset time is: 2024-03-29 11:49:17