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.

2D All the way! / How do you make a sprite follow another sprite while rotating?

Author
Message
TLOZ
20
Years of Service
User Offline
Joined: 7th May 2005
Location: Enfield, NC
Posted: 24th Sep 2005 19:55
I've had DBC for a while now and I've just upgraded to DBpro, and I wanted to know how to make a sprite follow another while rotating. I thought I could use "move sprite and rotate sprite", but its just not working. Please help!
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 25th Sep 2005 13:43
lets say sprite 1 can the positions x1 and y1, the other sprite (that wants to follow) has the position x2 and y2

simple

rotate sprite 2,blah
x2=curvevalue(x1,x2,10)
y2=curvevalue(y1,y2,10)


TLOZ
20
Years of Service
User Offline
Joined: 7th May 2005
Location: Enfield, NC
Posted: 25th Sep 2005 16:27
thanks its working now.

Login to post a reply

Server time is: 2025-05-17 10:53:25
Your offset time is: 2025-05-17 10:53:25