qxface's Recent Forum Activity

  • Thanks for these great tutorials. I'm really learning a lot about Construct from them.

    I understand why you use separate objects for the platform behavior and the animation. It works really well for Charlie who is pretty much shaped like the same rectangle whether he's standing, running, jumping or swimming.

    What if you're using character animations that should make the hit-box a different shape? Like a taller, thinner character that needs to lean forward while jumping. Or maybe the character's arms swing outside the hit-box while walking.

    It seems like the whole point of the hit box is to have an object that doesn't change shape so you don't have to worry about rubber banding off of walls or hanging off a ledge by your nose.

    Thanks everybody for any suggestion.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you that works beautifully!

  • Thanks for the reply. i'm thinking now that I'll probably use some detectors to see if the player is on solid ground or a platform and adjust the code thusly (pretty much what you said)

    So (hint hint) keep those platformer tutorials coming, please!

  • 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!

  • 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!

qxface's avatar

qxface

Member since 9 Jan, 2009

None one is following qxface yet!

Connect with qxface

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies