Jump to content

Second Basic studio


Recommended Posts

You have to write your own using hit boxes. With 2 sprites that are 8x8, a hitbox that surrounds the sprites would be Sprite1X, Sprite1Y to Sprite1X+7, Sprite1Y+7 and Sprite2X, Sprite2Y to Sprite2X+7, Sprite2Y+7. With those coordinates in mind, you'd write If-Then statements to see if any of those points intersect. Depending on what the sprites are you may be able to narrow your calculations. For instance, it may not be necessary to check the backend of a missile that always fires up at an alien ship.


Check out the following attachment for lots of helpful examples. The projects for richardscape1.sbs and richardsescape 1.sbs have sprite collision routines that you can play around with and refine.




  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...