PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Sample2 planes don't delete

I have been studying the samples. On sample2, the planes won't delete when tapped
So, PPL runs again on your machine? Great news then.

I will check Simple2.ppl and get back to you. It is quite strange, probably something that I changed in the gameapi lately. :cry:
yes, but only because of that software I mentioned to you in our PMs, which is not released yet. It also has to run all the time in the background to pick up the messages from the message que.

I think in sample2 the background sprite always has the highest order, and therefore when you tap and call SPRITEAT(), it will always recognize the background first. What do you think?
Do you get a good framerate?

As for SpriteAt(), I changed a few things in these functions. I will take a look, it could be sprite order, yes.
amazingly FPS are still good.

It would be nice to get a function that returns all the sprites at that location. I thought the obvious function for this would be SPRITESAT(), but that is already taken and used for something different.

you would think that because the plane sprite is on top of the background,it would have a higher order, right?
That is exactly what SpritesAt() is suppose to do.

I know what the problem is with the SpriteAt(). I will fix this in the next release.
OK. However, I'll have to wait until the next release to continue programming. A lot of my program focuses on this function.

PS. Is there another function I could use in its place for the mean time?
Also, could you give me an example of how Spritesat() works. thanks
There was a bug with the SpritesAt() that I just fixed :) SpritesAt() and SpritesAtRect() return a count and a list variable is set with all the sprites found.

Code:
list(l$);
if (SpritesAt(l$, x$, y$) > 0)
ForEach(l$)
DelSprite(l$);
end;
end;
ok. thanks