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.

Newcomers DBPro Corner / Sprite problem

Author
Message
Dmas_Zero
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location:
Posted: 3rd Mar 2004 01:53
i'm trying to do a 2D platform game, i use animated sprite for each tile, now i paste the tile with "paste sprite" cause i want the tile be in lot of places, but then if i use "sprite collision" it doesn't work with the pasted sprites! why?
how to fix it?
help me please
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 3rd Mar 2004 02:45
Paste sprite simply pastes stuff to the screen and forgets about it. You can't do collision on them because they are not actual sprites.

If you want same image in lots of places but still want collision you have to have lots of sprites I'm afraid.

Boo!
sponge008
20
Years of Service
User Offline
Joined: 8th Feb 2004
Location: MA, USA
Posted: 3rd Mar 2004 03:08
Yup, you have to use the "sprite" command.
Saikoro
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 3rd Mar 2004 03:33
But its ok as you can have like 65535 sprites loaded at one time... to take off lag just move any unwanted sprites offscreen using the MOVE SPRITE command.

-Vash the Stampede

Intel Pentium 4 3.0 Ghz 1024MB Ram NVIDIA GeForceFX 5200 128MB 19" LCD DVI Viewsonic

Dmas_Zero
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location:
Posted: 3rd Mar 2004 10:45
or i can put big sprites behind all the tiles right?
like for the floor i have 640/17 sprites (640=screen width, 17 = tile width)
but i can make a sprite with a 640 width and put it behind all the tiles right?

Login to post a reply

Server time is: 2024-09-22 00:02:37
Your offset time is: 2024-09-22 00:02:37