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.

DarkBASIC Professional Discussion / Sprite or paste with clipping?

Author
Message
Hannibal
19
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 19th May 2012 06:40
I have been attempting to write a scrolling game, however it seems neither sprites or pasted images can be clipped to screen edges !

I hope I am wrong, but what would be the point in having a sprite if it just disappeared when near edge of screen? Set sprite isn't much help either.

Any way to have a sprite or pasted image clipped to screen edges?

Help appreciated
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 19th May 2012 14:34 Edited at: 19th May 2012 15:52
It clips alright, here's an example.

Ok I have fixed a bug in my example....

Hannibal
19
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 19th May 2012 20:22
Thanks so much for that, it does clip

I was forgetting that in a scroller the screen needs display one more character block than usual,due to the scroll,-made it look exactly like the pasted images were not clipped at sides!

So relieved to know it is my fault, ty again

Login to post a reply

Server time is: 2026-07-22 00:35:52
Your offset time is: 2026-07-22 00:35:52