juanfrancoc's Forum Posts

  • 5 posts
  • add a KeyIsDown to the condition to OnKeyPressed

    example add 2 conditions to your Event:

    >> On Key 'N' is pressed

    'Shift' is Down

    This will only Trigger when the player hits N+Shift together

    You will also have to create the inverse condition

    On key `Shift` is pressed

    `N`is Down

    Otherwise the order in which you press the keys would matter.

  • I'm making a 2D topdown game and im trying to see if the player is not currently on top of any floor, but only with the floors inside a given layer.

    So i have to:

      a) Pick every floor on the layer b) If the player does no overlap any of them, then do an action

    The problem here is inverting the overlap condition does not do what im intending to do since it will trigger for each non-overlapping floor.

    I know a solution would be to set a local variable, loop through all the floors, if the variable is not changed then do the action. However i was wondering if there is a more elegant way of doing this.

  • Also, the at offset version of is overlapping does away with the need for a bigger hitbox, with the offset essentially acting like extending the hitbox in a particular direction.

    Yes i understand that, however it fails to extend the hitbox in every direction. Moreover, it wont extend the hitbox, but rather move it, so if i have a small object and a big offset i could end up going over the object and not overlaping it at all.

    For now i think this solution will work though, at least for the scope im using here. Thank you very much for your advice,

  • OddConfection

    I was thinking about this option as a last resource since it may cause problems with not horizontal grounds, however is one posible solution.

    It would be nice for future uses having a "Is touching" event. There could be something done with overlapping a slightly bigger hitbox

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm currently trying to make a platformer where the type of ground you step on determines your speed and acceleration. I'm having trouble being able to determine whether or not the player is on top of a ground. Notice that i want this to work even when the ground is not flat or horizontal. i know there is is a "Platform is on floor" event. Can i retrieve that floor instance or is there another easy way to do this?

    If it helps anything i know how to write javascript but never tried bridging it to construct.

  • 5 posts