ryanrybot's Forum Posts

  • The current stable release of IE does not support gamepads, but it is apparently available through their developer channel.

  • Animation frames makes a lot more sense, but I have a whole bunch of image points for the car sprite that are in places that aren't in quick assign positions. So instead of calculating where they would all be positioned manually, based on the new sprite size, I figured resizing the sprite using events might be easier.

  • Yep! You guys were right!

    The car sprite image point was one pixel off of the bottom. Works perfectly now. Thank you!

  • Thanks for the responses spacedoubt and Naxos84 !

    I will double check to make sure the image point is at the bottom. I'm pretty sure it is, but it may be 1 pixel off.

    Maybe I'll post the capx later, if I can't figure it out by tonight.

  • Hi Everyone!

    I have been plugging away at my game and ran into an issue with resizing a sprite.

    What I am trying to achieve is to squish the sprite slightly when it hits the ground, then have it spring back to it's original size.

    It works for the most part, but sometimes it goes spastic and the height amount shrinks and grows several times rapidly.

    Here's what I have so far...

    [attachment=0:34fkm3wn][/attachment:34fkm3wn]

    Does anyone have any suggestions, or maybe even a different way of doing it.

    Thanks in advance!

  • Did you try to make a global variable that is set to 1 when you press the jump key and, while the global variable is 1, add x amount of stamina to your stamina bar every tick?

    To stop stamina regen, when stamina bar is full or player gets hit, set your global variable to 0.

    In my head that works, but I'm not near my computer with C2 on it, so I can't test it.

    Maybe someone else has a better suggestion though...

    EDIT: I had health written, but meant stamina.

  • I'm happy that it works for you!

  • ok then!

    EVENT -- Player - Platform On Landed, Keyboard - Up arrow is down. ACTION -- Player - Set Platform vector Y to -500 (or jump height you desire)

    Sorry, if that's unclear. Boards won't let me attach anything right now.

    Good luck!

  • While button is down, set gravity to 0. On button release, set gravity to 500 (or whatever value it was before). That should do the trick.

    EDIT: Ahh, Ninja'd!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just off the top of my head, could you set a Global variable so that "push 'X', if (global variable) = 0 then pick up item and set Global variable to 1, else do nothing? The reverse logic would be used for dropping items.

    Would something like that work?

  • Thanks Zathan!

    I had looked into the carphysics addon, but noticed that I'd need to use the physics behaviour as well, which is something I am trying to avoid if at all possible.

  • Hi everyone!

    I like making games! I started with Klik&Play in 1995, and haven't looked back since.

    Construct 2 seems pretty awesome with my short time with it. I hope to have something to show you all soon.

  • Thank you so very much, eli0s! That looks great!

    I'll try to implement the movement tonight and I will post an update on how well I got it to work.

  • Hi Everyone!

    I am quite new to Construct 2 and was hoping someone could help me out.

    What I am trying to achieve is a platforming movement for a vehicle. Basically, I'm trying to get the behaviour to be much like Blaster Master: Overdrive (I had attached a link, but forum rules do not allow me yet. Sorry ).

    At first I had a single sprite with a platform movement, but soon realized that without it changing angles dynamically while going up slopes it was not going to be adequate.

    So then I tried creating separate sprites for each of the axles and giving them both the exact same movement, with the hopes that I could retrieve the angle between the sprites to apply my vehicle graphic as the axles went up a slope, but I had problems getting the axles to stay the same distance apart and setting up something to measure the angle every tick.

    I know that I can use Physics objects to set up a distance joint and measure the angle of that, but I was hoping to not start down that path as it's not a physics based game, and I don't really want to have to give everything a physics property just so my vehicle can interact with it.

    Does anyone one have any suggestions?