Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ARCHIGAMER

x and y coords

This topic is 6930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you get the x and y coords for objects etc in a 2d (side scroll). Are there any tutorials on getting this? mainly what i am asking can someone fill me in on x and y coords in game programming.

Share this post


Link to post
Share on other sites
Advertisement
Well, when you say "getting the x and y coords", you''re really not giving us enough information. Do you mean x and y as in tiles? in pixels? in inches?

We also have NO idea how the structure of your game is set up, so we can''t help get the x and y if we don''t know HOW to get the x and y, see what i mean? The x and y can be anything you want them to be, so you are leaving us hanging here!

Share this post


Link to post
Share on other sites
You''d want to keep track of the x,y coordinates yourself, instead of having to get them from the game. You''d probably have x,y coords for the player''s position on the entire level as well as on the screen.

hope that helps.

- Daniel
my homepage

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!