Page 1 of 1

How do I Check a collision?

PostPosted: Wed Jul 06, 2016 5:27 am
by ArtCode
Hello there!
I'm new here and I dont know very well how to use this fantastic software, so maybe you could give me a little help here. I heard C2 community is great :D
I'm trying to check a collision for the Player, now I'm trying to do something like this:
Check if PLAYER is colliding with the GROUND
if its true than make the PLAYER jump and the GROUND disappear
else dont make the PLAYER jump

How do I make this in the event sheet? I tryed some combinations but withous success :(
Thanks for your attention!

Re: How do I Check a collision?

PostPosted: Wed Jul 06, 2016 6:13 am
by Sup with that?
Well the very basic way would be something like,

Player on collision with Ground -> Player jump + Destroy Ground

Doesn't sound like you need the else condition since Player won't jump unless they collide with Ground, so they're not jumping by default.

Re: How do I Check a collision?

PostPosted: Wed Jul 06, 2016 6:15 am
by chadorireborn
@ArtChan - I made a sample .capx that should fit what you are trying to achieve.

https://1drv.ms/u/s!AjcW2ueud6qpsHWXw5fqyTYlh327

Re: How do I Check a collision?

PostPosted: Wed Jul 06, 2016 3:14 pm
by ArtCode
To chadorireborn:
Thanks that you got time for me to send that project, but I can't open it because i have the version r227...

To sup with that:
I can understand the logic, is more simpier than I thought! I'll try it, thanks!