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.

DarkBASIC Professional Discussion / sprite rotate question

Author
Message
ssj3_shadow
23
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 27th Aug 2003 04:22
ok here is what i need to achive

i have a sprite positioned on in the center of the screen the sprite is a 100x10 bitmap when i move the mouse the sprite scales to give the apperrence of being "stuck" to the mouse pointer so it stays in the middle of the screen but resizes according to the mouse position
ok all this is done
what i need is to have the outer edge of the sprite stick to the mouse so when i move the mouse it resizes znd rotates appropriatly.

i u cant visualise this then this is the same

create a line position x1 and y1 in the middle of the screen and x2 and y2 to the mouse x and y poisition

this is what i need tro achive but with a sprite
i can center in the screen
and resize appropriatly
what i acnt do is rotatr the sprite so it appers to to be stuck to the mouse

w00t -what does it mean?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Aug 2003 10:09
Something like this?
ssj3_shadow
23
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 28th Aug 2003 14:33
actually... thats exactly what i need down to the T. thanks IanM.
ill return the favour some how... in the form of a reply to one of your questions

w00t -what does it mean?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Aug 2003 15:45
Cash would be nice

Login to post a reply

Server time is: 2026-07-25 08:13:26
Your offset time is: 2026-07-25 08:13:26