Depth que with the mouse
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?
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?
Are you sure? You realise that it is the hardbox being considered not the dimensions of the bitmap?
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.
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.
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
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
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!