The Dink Network

Depth que with the mouse

March 13th 2008, 12:25 PM
dinkdead.gif
Anyone have any idea how depth que works when using the mouse?
Say I have a smaller sprite and a bigger one on top of each other, when I try to click on the smaller one sometimes it's the bigger that gets clicked, if that makes sense.

Usually it works how I want it but sometimes, especially when the smaller one is not an editor sprite, I can't click the smaller one. I've been moving the depth dots and playing with the que but there doesn't seem to be any rhyme nor reason to it except that a) if I move the mouse slower it works and b) the higher the que of the bigger sprite the better it seems to work, but never perfectly.

And btw what does 'que' mean anyway? Is it just short for queue?
March 13th 2008, 06:57 PM
fairy.gif
Someone
Peasant Male Australia
 
It clicks the one with the smaller sprite number (I think)
March 15th 2008, 08:18 PM
dinkdead.gif
Maybe... but it's not consistent.
March 16th 2008, 09:34 AM
fairy.gif
Someone
Peasant Male Australia
 
Are you sure? You realise that it is the hardbox being considered not the dimensions of the bitmap?
March 16th 2008, 01:33 PM
dinkdead.gif
Yes of course but it doesn't always click the lower number.

I think you are right though (surprise! ) because after I changed it all round it now is working how I wanted. It's annoying because it makes it hard to use create_sprite() sometimes but... oh well.
March 16th 2008, 08:16 PM
fairy.gif
Someone
Peasant Male Australia
 
If you're only using this on a few screens, you can create 'placeholder' sprites in the order you want in (win)dinkedit.

e.g.

sprite 2
3 (invisible placeholder)
4

then in scripts
kill 3
wait(1);
create_sprite

new sprite should have sprite number 3.. I haven't tried it though
March 17th 2008, 07:26 PM
dinkdead.gif
Sounds good but now I've fixed it so I don't need to use create_sprite() and it's working fine. Anyway I'd need 75 or so placeholders so it's easier to have changed it this way I think. Thanks!