Can you detect if an Actor isn't colliding with anything?

LeonMane

  • Posts: 13
Hello Stencyl forum,
I was wondering if there was a way to detect if an actor isn't colliding with anything,
like for example when it's jumping and it's in midair.

Any help will be much appreciated! :)

playtheHnote

  • Posts: 395
I'm assuming this is a platformer. Most would create a bool set to true when you hit the ground and false right after you jump then use that bool to determine if you are on the ground also you can use if(ySpeed of actor < 0) bool = false (***As if you are falling***) and there are a few other ways to do it as well.

Hope this helps
Check out my instrumental rock album "Hail to the Chosen One" at: https://soundcloud.com/play-the-h-note

Visit my facebook page @ https://www.facebook.com/justin.shellhorn.1
"Sound King"  now available at the forge see http://community.stencyl.com/index.php/topic,35672.0.html
for more info!

LeonMane

  • Posts: 13
I'll try that, thanks a lot! :)