You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've now got great sprite-sprite and sprite-touchscreen collision detection. Every frame, we emit a list of collisions between sprites, and the special sprite 31 for the touchscreen. Use it in your frame callback like:
forcintulip.collisions():
(a,b,x,y) =c# a,b are the two sprites, x and y was where the colliison was first reported
You can have up to 8 collisions reported per frame. Check out collide on Tulip World (world.download('collide')) for a demo!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We've now got great sprite-sprite and sprite-touchscreen collision detection. Every frame, we emit a list of collisions between sprites, and the special sprite
31
for the touchscreen. Use it in your frame callback like:You can have up to 8 collisions reported per frame. Check out
collide
on Tulip World (world.download('collide')
) for a demo!Beta Was this translation helpful? Give feedback.
All reactions