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 rotate?

Author
Message
Code Ninja
22
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 19th Dec 2004 08:31
For example, is there anyway that I could get a sprite that faces north to rotate so that it faces, say, east when I press the right-arrow key?

any help would me much apreciated.

Dragael Software
Current Project: Nothing worth mentioning
Cookyzue
22
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 19th Dec 2004 12:32
just use



Current Project: Goonder Mania
MCK Games
bjdgames
21
Years of Service
User Offline
Joined: 2nd Aug 2004
Location: In a galaxy far, far away...
Posted: 28th Dec 2004 02:31
I thought that was only for DarkBasic Pro?


Http://Bjdgames.co.nr -- home of EncryptoMagic Pro v1.0

bjdgames
Code Ninja
22
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 29th Dec 2004 04:08 Edited at: 29th Dec 2004 04:09
ya... either that or it doesn't exist at all, because it sure doesn't exist in DBC... hmm, mighta been advantagious for me to have specified which version of DB I was using, lol.

Dragael Software
Current Project: Nothing worth mentioning
Turoid
22
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 29th Dec 2004 07:24 Edited at: 29th Dec 2004 07:24
Quote: "I thought that was only for DarkBasic Pro?"


yup it is

need help with programming?
Add me to your msn
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 30th Dec 2004 00:39
I think dbc has a hidden command that will rotate either an image or a sprite. It only works in multiples of 90 degress.
If rotate sprite doesn't work try rotate image instead.

Quote: "this is not a quote"
Code Ninja
22
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 30th Dec 2004 00:47
Thanx the_winch.

Dragael Software
Current Project: Nothing worth mentioning
Carolina South
21
Years of Service
User Offline
Joined: 28th Sep 2004
Location: South Carolina
Posted: 30th Dec 2004 07:13
Good info here.

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock." - Will Rogers

"The secret to creativity is knowing how to hide your sources." - Albert Einstein

Login to post a reply

Server time is: 2026-06-11 14:46:13
Your offset time is: 2026-06-11 14:46:13