qxface's Forum Posts

  • The Platform Behavior has an option called "allow down button" which makes your player fall through platforms when he hits the down control.

    I want to allow my player to crouch while on platforms and fall through them if he jumps while holding down. I can uncheck "allow down button" and in the event sheet editor check for down AND jump and set the player to "fall through platforms", but the jump action happens before he starts falling and he winds up jumping.

    If I disable the jump as a control and just check for when the shift (jump) button is pressed, I can make the character jump while standing and fall through platforms while ducking.

    The problem with this is that when you make the player jump with event code, it ignores the "jump sustain" property.

    Is there a better way to allow crouching on platforms, falling though platforms with down and jump, and jump sustain?

    Thanks for any tips!

    --Edit--

    Wait a minute. What if I just set the player's jump strength to 0 while ducking? I think that just might work. I'll try it out.

  • I love these tutorials (and the new frequent update schedule)

    Thanks so much for posting these. As a beginner, they're a huge help getting a handle on Construct.

  • Perfect!

    Thank you so much. That did the trick.

  • Hi. Can anyone tell me what I'm doing whrong here?

    Arrows and Containers

    I'm trying to get arrows to point from the player to both of the enemies. I have the enemy and arrow wrapped in a container, so I think that whenever the arrow references the enemy, it should default to the instance of the one that it is grouped with.

    Right now I have the arrows centered on the enemies and pointing to the player and everything works fine. However, if I go into the event sheet editor and reverse the targets so that the arrows are centered on the player and point to the enemy, both arrows point to the same enemy.

    By the way, I used tips from DeadEye's post about "This Cursed Rock" to initialize the enemies:

    This Cursed Rock

    So it's possible I made mistakes with that part that are causing my problems.

    I appreciate any help!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Platformer with Buttons

    Thanks for your response!I hope this link works properly.

    When you start the game, you can run around and jump normally, but after you click either button, the arrow keys don't move the character around any more.

    It's probably better to click on the "More Jumps" button, since if you reduce the number of jumps to 0, the character won't jump.

    Maybe it's something the in the event script I made that's causing trouble. I'll blank out the code for the button presses and see if I still have the problem.

    Thanks again for your help

  • I am trying to make a sample platformer to learn Construct. The platformer behavior made it pretty easy to get a character running around and jumping over terrain.

    My problem starts when I create a button control object. If I click on the button, my character becomes unresponsive to keyboard commands. If I minimize and restore the window, I can move the character again. Is there some way to give focus back to the character after the button is clicked?

    In the changelog for 0.98 it says:

    "- [FIX] Mouse & Keyboard: issues with focus (now focusing a control won't stop input; focusing another window will stop input)"

    That sounds like the problem I'm having, but I'm running V0.98.3, so that should be fixed.

    I have the same problem when I use any control (button, listBox, comboBox). By the way, when the button is clicked, all it does is increment a private variable of the character. That part seems to be working just fine.

    Thanks for any help!