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.

2D All the way! / Sprite Moving in from Left

Author
Message
Lord Anki
20
Years of Service
User Offline
Joined: 26th Aug 2005
Location:
Posted: 27th Aug 2005 22:20
Heya, I was wondering if anyone knew how I could get the sprite to start off, to the far side where it wouldn't be displayed and then as it moves into the viewable area you can see it. I'm working on an introduction for my game and I have one sprite coming in from the right and that works due to the edge of the sprite being right on the limit, but I need the sprite coming from the left to not be visible until it gets into viewing area but I am unable to do that because the pixel limit is only at 0 and you can't go past it.

~ Lord Anki ~
Creator of: Space Defender
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 28th Aug 2005 08:12 Edited at: 28th Aug 2005 08:13
Sprites can go beyond the limits of the screen. Make the sprite start at -20 (or whatever the size of the sprite is) instead of zero.

Also the source doesn't work... always use code snips.

Lord Anki
20
Years of Service
User Offline
Joined: 26th Aug 2005
Location:
Posted: 28th Aug 2005 19:11
Oh well I decided to do something different but thanks.

~ Lord Anki ~
Creator of: Space Defender
Ooska
21
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 29th Aug 2005 07:17
*points finger
Avoiding a problem never solves it.
(j/k)

Weird = Unique. Unique = Human.
Im human.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Aug 2005 09:58
Amen, Ooska.

Consider it for future reference, Anki. I'm sure you'll be using that knowledge some day.

Login to post a reply

Server time is: 2026-07-08 06:46:39
Your offset time is: 2026-07-08 06:46:39