![]() |
| | #1 |
| Guest
Posts: n/a
| Problem with a game im making Thanks Chris |
|
| | #2 |
| Guest
Posts: n/a
| im using OpenGL to make this game |
|
| | #3 |
| Registered User Join Date: Aug 2001
Posts: 411
| Change your player position variables to floats, and add a second set of variables that are the destination of the player, then move the player a little closer to that spot each time the scene is drawn, If you want cross system support you will have to do a time based movement. Now your player will never get exactly on the spot, so you will just have to use an if statement to check if the player is close enough to stop moveing.
__________________ www.EberKain.com |
| Eber Kain is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with game code. | ajdspud | C++ Programming | 5 | 02-14-2006 06:39 PM |
| Problem with drafts game | InvertedSaint | C Programming | 6 | 12-21-2005 10:55 PM |
| problem with my opegl game... | revelation437 | Game Programming | 6 | 11-25-2004 11:32 AM |
| Making a game | KneeGrow | Game Programming | 1 | 04-16-2004 12:40 PM |
| Random Number problem in number guessing game... | -leech- | Windows Programming | 8 | 01-15-2002 05:00 PM |