dgibbons82's Forum Posts

  • Figured it out. Thanks LOF. Thanks also A0Nasser for the demo.

    The correct setting was:

    On any click, set vector Y to - 500

    On start of layout, set gravity angle to 270 degrees

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are a few ways to achieve this, first you can use Y vector instead of jump with positive and negative values for up and down.

    The platformer behavior also has an action to set gravity angle, so you can change it to pull up.

    You should disable Default controls and set your own set of events, then you can choose which key does what and when.

    Excellent! Thanks. It's nice to know I was on the right path. I set the vector Y - a negative # and the correct gravity angle to pull up. My issue is that my jump (event triggered on any click) is completely ignored. I'll keep playing with it. Thanks for confirming that I was on the right path!

  • For example, suppose my main character is a ghost that floats, and I would like to make the ghost "dive" down to the ground (platform) and then return to the same height from which he started. I basically want to reverse the jump. This would be reversing the direction of a normal jump that is performed by clicking (in my example).

    Another example would be that of a swimming fish. I want the jump command to arch the fish down and then back to its original starting height.

    Any tips would be greatly appreciated. I can't attach a CAPX but was just "fishing" for suggestions. (Pun intended)

    Another way to ask this question would be: Can movement be completely reversed? In case I wanted to introduce a level where up is down and down is up.

  • First thing in my head is to have a global variable that mimics the points, but resets on each 10.

    So, whenever your event adds to the points variable, have it add to another variable too. Then reset the second variable every multiple of 10 and add 1 to speed.

    I like this idea. Thanks. I'll give it a shot!

  • if (points % 10 = 0) add 1 to speed

    translate to C2 code and should be right

    Thanks for the suggestion! I was able to get the syntax correct so that speed increases by X amount when points reaches every 10th multiple, but the speed just continues to speed up until everything is a blur. I'll have to dig into a bit more to see how to increase the speed once, and not continually after the condition is met with a multiple of 10. Right off the bat, it appears that it keeps adding X amount to speed when the player reaches 10.

    I appreciate the response. I'll keep working on it until I get it right, and I'll post my resolution here if I find it before someone else is able to reply with the Construct 2 solution.

  • I'm new to Construct 2 and I'm loving the software so far. Excellent work, Scirra!

    My only question so far has been in regards to variables and setting values. I have a Global Number called "Points". Points will reset to 0 at the start of the layout, and will increase by 1 each time a specific action occurs. I would like to be able to increase another Global Number (speed) every time "points" reaches a multiple of 10. The idea is to increase difficulty as the player reaches 10, 20, 30+ points. I can manually enter the events by using the "set value" event when "points" = a multiple of 10, but I feel this isn't the smartest way to create this functionality. Although it may not matter as the game will become nearly impossible after a certain amount of points for the really good players.

    Any suggestions would be greatly appreciated!