Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


2d road sprite's size?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 taoufikallah   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 May 2012 - 12:40 PM

I'm starting out a small 2d game and I need to know what to do about the road sprite.
Should it be a one piece image? or should it be divided into small pieces? and how high should the road be for a "racing car game"?

thank you!

Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 16064

Like
0Likes
Like

Posted 22 May 2012 - 12:55 PM

Can you describe your game in a bit more detail? Is it top-down? Side-scrolling? Pseudo-3D? What kind of shapes will your roads take? What do you mean by "how high should the road be"?

#3 taoufikallah   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 May 2012 - 01:02 PM

Thanks for replying,
Well my game is like the old road fighter.
what I mean by how high the road should be...is the height. if I simply use one piece of image. how high should it be?

#4 ApochPiQ   Moderators   -  Reputation: 16064

Like
2Likes
Like

Posted 22 May 2012 - 01:29 PM

Ah, gotcha :-)

Usually the way this is done is to have a single sprite that you repeatedly draw in a vertical stack. So the sprite would be about as tall as one "stripe" on the road plus one "blank space" between stripes, if that makes sense. Then you just draw that several times, each copy going below the one above it, and you have the complete screen.

#5 taoufikallah   Members   -  Reputation: 109

Like
0Likes
Like

Posted 22 May 2012 - 02:14 PM

Thank you I got it all :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS