sgn15's Forum Posts

  • I have an object with animations named like animation1, animation2, animation3, animation4, etc.

    I want to save that to a number variable but removing the word "animation", meaning

    animation1 will set a variable to 1

    animation2 will set a variable to 2

    animation3 will set a variable to 3

    and so on

    Is this possible to make using only 1 event? I'm not too good with text-related expressions.

    Help please.

  • Still not sure about the overall theme of your game, is that thin line a platform (jump thru or solid) ?

    If it's a horizontal layout and you keep on running and enemies chase you, place thin vertical line sensors on each area where enemy needs to jump

    Use Vector X to make any object with platform behavior to move horizontally, Vector Y to make it move vertically. You can use vector X while jumping

  • If this is platformer/side scroller game, this might fit your preference

    https://www.scirra.com/tutorials/1320/p ... enemies-ai

  • Any object that is set to invisible during the game itself and its only purpose is to act as enemy's sensor/detector (which is done by overlapping)

    I'm not sure which is your player in the pic and which is your enemy and what is that circle with an L in it, but I don't think you need to check your X and Y for enemy to jump. Just check if enemy overlaps the sensors (which you should put in the layout before runtime) then simulate jump.

  • facecrime

    can you paste a screenshot if ever something works for your fade?

    I might also need this in the future for my game. thanks

  • You do not have permission to view this post

  • According to description of Gamma parameter, the values are only 0 to 3, But (while in layout view in C2) I personally tried values way higher than 3 like 50, 80, 100 (this looks closer to full black).

    You can try a counter (using a global variable) that adds to itself every second and (for action) Set parameter 0 to a variable's value also (this variable's also being increased through time).

    I never tried this btw, but I checked and there seems to be no expression for effect parameters, so you can't reference "the current parameter value then add 1" as expression (as far as I know)

  • Are you talking about Gamma effect? there's just literally 1 parameter.

    I'm not sure what you meant by "variable"

  • You do not have permission to view this post

  • Use "Pick by Comparison" condition like this

    Pick OBJECT

    which

    OBJECT.UID

    =

    whatever UID of the instance you want to delete

    -> destroy OBJECT

  • If you put platform behavior for the enemy, Set Default Controls to No and Use Simulate Jump action.

    As for the condition when to jump, use invisible sensors (check if enemy overlaps sensor), then enemy jumps.

    Adjust Enemy's platform parameter Jump Strength to your preference.

    ktb

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ScrollTo behavior has a screen shake action

    You can play around with these values in a loop:

    Layout Angle

    LayoutScale

  • Here is what I want to do (a snake made of a head and several "ball" body parts)

    Just want to ask for some tips here.

    Legend of the pic:

    numbers vertically means order of animation sequence (in game)

    numbers horizontally means order of creation (starting from head)

    First, I want to spawn the head, then head spawns first body, pin the body to head, then 1st body spawns a new body, pins it to 1st body and so on,

    1. Which pin style should I use for this? Bar or Rope ?

    2. should I save the UID of the connecting body instances to each other?

    First time doing this so I'm a little clueless. Please help. Thanks

  • if you want to detect a double tap or combo (like down-right-left combo), reset your textbox every half second (your press and combo presses are quicker than half second anyway) and delete textbox content every half second.

  • You need to use key codes

    I'm not sure what the key codes for each button is, but you can set the text or textbox to show the pressed button's key code. I have done this before.

    Textbox: Set text to Keyboard.LastKeyCode

    The string expression of key code is Keyboard.StringFromKeyCode(Key code number value)

    As for key mapping, you need to save the key codes into variables (global vars). Set the default values to default control buttons, then change the values of variables if the player changes the controls.

    Oh, I was only talking about keyboard, not sure how key mapping works in touch.