47
« on: December 17, 2018, 04:29:42 am »
Hello, and welcome to my first post. I'm trying to make events for an actor so that when the jump button (enter) is pressed a sound will play. Since I don't have a double jump, I don't want the sound to play if jump is pressed while the actor is already in the air. I can't figure out how to do this, except with regions, so in my scene I have 5 regions on the “ground”. If the actor leaves the ground it also leaves one of the regions. So I tried setting up my block like this:
when enter is pressed
if Self is inside Region
Play Jumpsound
My problem is that I don't see how to choose certain regions. The choices are Self is inside Region, or Self is inside Last Created Region, or Choose Attribute. There are no attributes for my regions that I drew into my scene. With the block set up like this I get no jump sound. Take out the “if” and I get jump sounds while already in the air.
Am I going about this the wrong way? I'm new to Stencyl, so please forgive my ignorance. I imagine that there's some simple way to accomplish this, and I'm just not seeing it.
Thank you for reading my question.