andersassad's Forum Posts

  • 7 posts
  • I love you. I really do.

    Thank you. It worked perfectly.

    I love when the solutions are simple and genius like this.

    Its even easier than what I was trying to.

    Living and learning.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • couldnt open project

    layout1.xml is missing

    Sorry about that. Should I .zip it?

    Anyway, posted screens for now, if it helps to understand whats wrong.

    EDIT: Uploaded again.

  • Thing is, I'm trying to make the arrow keys switch between frames.

    Right arrow:

    0 > 1 > 2

    then

    Left arrow:

    2 > 1 > 0

    But in my test its switching directly from 0 to 2 and from 2 to 0.

    What am I possibly missing here?

    .capx:

    dropbox.com/s 1ennztlrn55x9mz/Arrows%20Dropbox.rar?dl=0

    Screens:

  • Every tick         | Set MaximumSpeed to max(50,MaximumSpeed-0.5)
    MaximumSpeed > 50  |
    Shift is Not Down  |
    [/code:2kltjruw]
    
    Acceleration will be based on similar, or whatever behavior you are using to move in the first place.
    

    Thank you very much. Could you post a printscreen of the code you posted above? Only so I can see what is condition, event, etc.

    Sorry I'm new to Construct.

  • One more question, how do I make the acceleration and deceleration smooth?

    When I release shift, the Player instantly changes its speed. How to make so he slowly lose speed?

  • > Shift Is Down   | Set Maximum Speed to 100
    Stamina > 0     | Set Stamina to max(0,Stamina-1)
    
    Stamina =0     | Set Maximum Speed to 50 
    [/code:s242cyf1]
    

    Thank you! I'll try that!

    I need to create "Stamina" as a Global Value right?

  • Hello. This is my first post. I watched many tutorials but never found this. Perhaps there is in some advanced complete video tutorials, but I'm still at beginning of my game.

    So here is what I want to do. Please help me if possible, to at least give me an idea. ^^

    When press SHIFT, object ACCELERATE till a MAXIMUM VELOCITY.

    For example, if normal velocity is 50, I want that upon SHIFT pressed, velocity slowly increases until 100 and stops. And for all the time that SHIFT is pressed, there will be a STAMINA BAR decreasing. When STAMINA BAR is at 0, object will decelerate until reach his 50 velocity again.

    SHIFT can be pressed at any time, even if STAMINA BAR is at middle.

    Also, if possible, I wonder if its possible to add a animation triggered by that. Like a turbo/nitro animation.

  • 7 posts