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.

Author
Message
Lan
16
Years of Service
User Offline
Joined: 8th Sep 2009
Location: Earth
Posted: 27th Aug 2010 18:18
Say you make a box. How do you move it across the screen without using a loop and variables for the coordinates?

[Insert Signature Here]

http://www.LanKingProductions.com/
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 27th Aug 2010 18:32
You have to have a 'do-loop'
You could point the object in the direction you want to move an move it each frame by an arbitrary amount:

Or, do you mean 2D?


The fastest code is the code never written.
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 27th Aug 2010 18:35
Using a loop and variables is a vital part of any program - it's impossible to do this without some kind of loop. Why do you want to avoid using one?


Latest progress: Fog of War implemented
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Aug 2010 18:40
Hmmm... how does one make a box and move it across the screen without using a loop or variables. In a way that shouldn't be done.



Login to post a reply

Server time is: 2026-07-23 12:10:41
Your offset time is: 2026-07-23 12:10:41