Jump to content

Collision detection


chanojuano
 Share

Recommended Posts

Hola amigos

 

one last question and i wont badder you for a while hopefully :)

 

i need to know 4 things to make a game, 1 sprites, 2 variables, 3 animation and 4 and most imortant collision detection:

 

in enchant is and very efficient:

 

sprite1.intersect(sprite2);

alert("collision");

 

or 

 

sprite1.within(sprite2);

alert("collision');

 

I am sure theres something like it here. in the example file for sprites they all are reference as sprite and then put properties with "this" i dont see an identifier for each

 

thanks a lot for the help and insight :)

Link to comment
Share on other sites

I dint notice it too Enpu because is about gravity, i am not too advance programer, i like to do more arcade games where i just put .x += speed more simple, i am shure this si simple example for good programers but you are simulating gravity wich is too advance for me, i just thinking about just a little car sprite coliding with another and remove child, so if someone or you has a simple example like this for and old man i will thank you a lot, good night all :)

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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