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! / Moving a sprite

Author
Message
Mucky Muck Ninja
22
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 4th Dec 2005 07:02
Im working on my game for easter compo(i put Azara on hold) and was wondering how I move a sprite in the angle its pointing without using move sprite. I tried newxvalue but that didn't work. I know I could use sin and cosine but I dont' remember the forumula to use for that. Could someone either tell me the formula or another way to calculate movement please?

Thanks

Im sick of Master Chief soo...ooga booga!!
Explain to me why some people pay money for 3d software? Its not 3d till its been blended. wwww.blender3d.org
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 4th Dec 2005 11:17
There is nothing wrong with NewXvalue and NewYvalue. Perhaps you didn't use them correctly?
Would you care to post some code and I can take a look.


Mucky Muck Ninja
22
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 4th Dec 2005 17:19
Hmm,nvm thanks tho. I just realized that i don't want my character to rotate manually. Too used to 3d lol. I just have to use inc and dec.

sorry lol.

Im sick of Master Chief soo...ooga booga!!
Explain to me why some people pay money for 3d software? Its not 3d till its been blended. wwww.blender3d.org

Login to post a reply

Server time is: 2026-07-07 02:19:24
Your offset time is: 2026-07-07 02:19:24