Sorry about the multi posts but I assume editing might not get noticed.
I have checked the new anti-collision and I believe there was a misunderstanding or reading.
Quote:
|
...and still have the sprite visible and doing things
|
My original intention was that individual sprites could be prevented from being collideable via a Boolean property. It might be that say 10 sprites should never or perhaps only under certain conditions be permitted to collide.
To turn the collision mechanism off altogether is undoubtedly useful, but please could the original request (possibly badly explained) be considered?
It could be done now using your new ID and filtering it in the collision sub, I presume, but it doesn't prevent the collision sub being called and slowing the system down. Of course I don't know how this could possibly be done, but sprites do already have some properties and this could presumably be just one more???
[Edit]Sorry to be a bore but I tried this and I get the error Object must first be created.... The idea of all this is to do something to a specific sprite if it collides but not if it is some other sprite.
gw.s has been created as a sprite and works
Quote:
s has been created as a sprite and works
s.ID="Fred" seems OK
spr1 has also been in use ok
Sub gw_collision
Spr1.value=gw.Sprite1
If spr1.ID<>"Fred" Then
spr1.Velocity=6
...
|