rezagamertag's Recent Forum Activity

  • I would keep the player in the middle and move the entire background / objects to the left.

    This way you don't need ScrollTo.

  • "System > Create Object"

    "Mouse > On object clicked > Double Clicked"

    "Object > Destroy"

  • Look at existing games and what window sizes they support and copy them. If you have any manual sidescrolling games you take as an example,

    it would be wise to closely look at what they're doing right and mimick it.

  • Assuming you are exporting it into html, you're probably going to have to edit the html file to make it centered. Because that's where the iframe properties are.

  • Here's more information about "families" in construct 2 and how they work:

    https://www.scirra.com/manual/142/families

    I think that'll help you along.

  • You can use guard.x and guard.y to specify at which coordination they need to stop moving.

    And you can use "System > Wait" to make them wait a certain amount of seconds before the next action starts(walking a different direction).

  • You use 2 variables, one for minutes and one for seconds.

    Every second you will add 1 to the second variable and when the second variable is 60 you will change it back to 0 and add 1 to the minute variable.

    You will then put those variables in a text object using "Set Text" to variable_minutes & ":" & variable_seconds.

    Everything I just mentioned will only work with a condition like "player is alive", so it stops working when the player has died.

    Hopefully this helps you a bit in the right direction

  • You can use an array to store the numbers of m1 and m2 in and then use a "For each" condition to check wether they are equal.

    More on arrays can be found here:

    https://www.scirra.com/manual/108/array

  • "System" > "Compare Variable" when adding a condition.

  • Can you add a capx file or tell us more about your 2 objects that you're trying to "match"?

    Because I can't figure out what you're actually trying to do here.

    You can try using 2 variables that contain the values of the frames of both objects.

    You will have variable_object1_frame and variable_object2_frame which are both indicating what frame the objects are at.

    Everytime you change the frame of 1 object, you will also change the variable to it's respective frame for instance if object 1 turns into frame 3,

    you will change variable_object1_frame to "3".

    With this variable you will be able to set the frame of object 2 when nessecary.

    I hope this helps you with your issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My window size and layout size are always the same size.

    Portrait mode probably put a 160 pixel wide border around your window.

    It might even be that the screen starts from x=180 because that's the difference between your window size (960) and your layout size (1140).

    Maybe changing them both to the same size helps your problem.

    That's my 2 cents.

  • The first method that comes to mind is to create a local variable and start a timer every time you press the directional key and once the timer runs out you change the local variable.

    You start the local variable with "no dash" and when you press the directional key for the first time it will change to "dash possible".

    After the timer has run out the variable will change back to "no dash".

    While dash is possible, pressing the directional key again will trigger the dash function.

    You will have to make this for every directional key if you plan on being able to dash every direction.

    The timer will of course be very small around 1 second.

    Hopefully this helps you in the direction of what you're trying to do.

rezagamertag's avatar

rezagamertag

Member since 8 Mar, 2014

None one is following rezagamertag yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies