CloudVII's Recent Forum Activity

  • So I'm making a small platformer,

    and I want to make it so that when the player has been moving for more then 5 second, +1.0 is added to the max speed.

    I was thinking something like,

    "if player is moving,

    than every 5.0 seconds add +1.0 to max speed."

    but I can't add +1.0 to max speed, because I get a syntax error when I try to input +.

    So does anyone have a idea on how I could achieve this?

    Also, I'm just using the platformer behavior, and the current max speed is 230.

    (Also, I searched around the forum but didn't find anything, sorry if this has been answered before)

  • no you dont need 2 of each control. You just setup your controls to effect the currently active one and make the one thats not bein controlled ignore input

    Derp, I'm rather the idiot it seems. Can't believe I never thought of doing it like that.

    It worked, thank you very much!

  • No problem ... but you have change the tutorial to improved it so we don't know anything about your new code ... share your capx using dropbox or another hosting site and give us a link to this capx and we could help you.

    I've added a simple attack, and the player can jump with Z now, but otherwise it's identical.

    I wouldnt even bother tryin to do it that way really.

    Make the 2 chars you can control both have whatever control behavior you want and when you need to switch between them just disable input on the old one and enable input on the new one.

    Treat each as its own playable character with full support for everything your game requires

    I thought of doing it like that(It would be much easier to do in actuality), but that would mean the player would have four jump buttons and two attack buttons, which would complicate things and make for a awkward control scheme.

    Currently I have it so the player switches between the two being visible and not visible by pressing C and V.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright, So I followed Ashley's excellent platformer tutorial, and I've been using that as a basis for development. So here's my question, I have two different player characters, and you need to switch between them to solve puzzles.

    So say I have Player1's position set to PlayerBox, and when the player presses C, it stops setting Player1's position to PlayerBox and makes Player2's position set to Playerbox, and vice-versa.

    However, I don't want Player2 or Player1's position to be teleported to PlayerBox, I actually want PlayerBox to be set to their positions.

    So any idea how would I go about doing this?

    All help would be appreciated!

  • Hello! I'm Cloud, I'm sixteen and have been developing games since late 2008. My first projects were made with Game maker, but I've dabbled in different engines. I know a small portion of python, C#, C++, and Java.

    I've a knack for designing and coding, but I'm no whiz with graphics or music.

    Anywho, Hope to see you all around the forums!

CloudVII's avatar

CloudVII

Member since 18 Jun, 2012

None one is following CloudVII yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies