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! / sprite movement

Author
Message
Pazza
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: United Kingdom
Posted: 28th Feb 2003 21:25
Hi, I'm having a bit of trouble, I'm trying to make a sprite move from a fixed position to a location that the user gives by clicking, I just want it to move directly from the start positon to the position of the mouse.

can any1 help me??
www.danielparry.co.uk - Hope to have a DB section up soon!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Mar 2003 00:20
You mean something like this?

if mouseclick() > 0 then sprite 1, mousex(), mousey(), sprite image(1)
Pazza
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: United Kingdom
Posted: 1st Mar 2003 15:58
no, maybe I explained it wrong

I want a bullet to be fired from a tower, the bullet flys through the air to the cordinates the mouse were when the user clicked.

www.danielparry.co.uk - Hope to have a DB section up soon!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Mar 2003 18:09
Are you using Pro or Classic?

If you are using Pro, try this instead:


I didn't have the time to do the movement calculations myself, so I'm using ROTATE SPRITE and MOVE SPRITE instead.
Pazza
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: United Kingdom
Posted: 1st Mar 2003 22:07
I'm actually using classic, can't afford pro, but upgrading hurts your wallet a little bit less.
anyways cheers for ya help.

www.danielparry.co.uk - Hope to have a DB section up soon!

Login to post a reply

Server time is: 2024-04-18 09:45:04
Your offset time is: 2024-04-18 09:45:04