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.

Code Snippets / [LOCKED] crips 2d sprite movement?

Author
Message
Binary Mantis
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location:
Posted: 30th Jan 2004 16:47
I have writen the following code. Its not very good programing santax nor is it commented it took me like 5 mins. But basicly what it does is move a sprite...The problem is that it is very blocky movement almost like the sprite is moving in a grid and not pixal by pixal so to speak... I think I know what the problem is (the fact that im subtracting the x and y values at once and not pixal by pixal though this would make it move much to slow) SO im asking for someone to look at my code and see if there is a better way of doing it? or perhaps im just a retard and am leaving something out lols
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 30th Jan 2004 20:41
replace -10/+10 with -1/+10


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Jan 2004 22:32
This post belongs in the DBPro discussion forum or the Newcomers forum. This is not the forum for questions

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-24 00:42:26
Your offset time is: 2024-11-24 00:42:26