Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dipstick5000

Pages: 1 2 3 4
46
Ask a Question / Re: Jump sound effect only while on ground
« on: December 17, 2018, 04:37:38 am »
PS: I also thought about having a region follow the actor and constantly redraw in new positions, but I don't know how I would keep it on the ground without using a whole bunch of processing power, since the actor is constantly moving. At least that way though, I could choose the "Last Created Region" option.

47
Ask a Question / [Solved] Jump sound effect only while on ground
« 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.

Pages: 1 2 3 4