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 / Sprites behind background

Author
Message
JSN
22
Years of Service
User Offline
Joined: 8th Nov 2003
Location: 127.0.0.1
Posted: 3rd Dec 2003 12:23
Trust me I have searched, but I can't find the result (perhaps a better search option is one for the new forum design...!)

Anyway,

I have some images that I've pasted onto my screen, I've also pasted some sprites, some of which need to go BEHIND the pasted images.

I realise that SET SPRITE PRIORITY will be in similar fashion to Z-Order, but I can't seem to set it for actual pasted images. I did try -1, but I end up with nothing...!

Any ideas on how to achieve what I'm after.

TIA

-----

~ J ~
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Dec 2003 12:25
The only think I can suggest is paste your images after sprites...


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
JSN
22
Years of Service
User Offline
Joined: 8th Nov 2003
Location: 127.0.0.1
Posted: 3rd Dec 2003 12:37
Well I thought of that, but no joy.

I did try the DRAW SPRITES FIRST command (obvious choice), but of course my user-controlled sprite then goes behind the background!

I don't really want to convert my background to one all mighty sprite, but I can't see any other way at the mo.

-----

~ J ~
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Dec 2003 19:32
It sounds to me like you have no choice but to paste the images in the correct order to start with.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2003 03:15
Sprites are overlayed ontop of everything like a transparent sheet. To position sprites behind something you must make that something a sprite also and then use the sprite priority command.

Failing that use a parallax background and make your sprites into images.


God created the world in 7 days, but we're still waiting for the patch.

Login to post a reply

Server time is: 2026-07-26 20:16:37
Your offset time is: 2026-07-26 20:16:37