99Instances2Go's Recent Forum Activity

  • The biggest problem is that statement: "By the way, jump is the 'Z' key."

    It is not. Why ?

    Well, the Platform-Behaviour is still running in 'Default Controls'. That makes the Up-Arrowkey the JumpKey.

    If you want different. Then you have to change the 'Default Controls' property from 'yes' to 'no' in the Platform-Behaviour.

    After that you are free to use 'z' as the JumpKey. But that means also that you have to make events for Left and Right. Once done that, everything else will be easy and work as you expect it to do.

    Maybe follow this Tut for a minute:

    /tutorials/455/platformer-enhancements-double-jump/page-1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this what we talk about ?

    https://

    drive.google.com/open?id=0B1SSuCVV8v74NTYwNkZucTdzNkE

    There are two bloks because i cant figure out wich 'one' is meant in "Now make it check variable 'one' is equal to zero."

    Subevents run if there parent(s) is (are) True.

    Under the left mouse, the OR-subs only and only run if te local var = zero.

    Under the right mouse, the OR-subs can never ever run because you stated that de global var should be 1.

  • Collisions is a total differend story. You provide a CAP with not 1 collision is happening. Then you complain that the solution only works for your CAP.

    So, here is a CAP that understands collisions.

    https://

    drive.google.com/open?id=0B1SSuCVV8v74WTJaNWVSdUtXeWc

    There is a Framedrop 4sure. But not because of de few events. Press the key to dissable the events.

  • https://

    drive.google.com/open?id=0B1SSuCVV8v74S2owUEUtZUJHVU0

  • It 'hits the ground', so i suppose in is not endless. The 'hitman' stays on position. Use the physics/chipmunk and follow the 'object' with the camera.

    /tutorials/626/making-a-smooth-following-camera

  • Personaly, i use physics and an invisible solid. Because it fals so nice. It lands so natural. The code is minimal.

    And most of all, it has the 'is sleeping' condition.

  • Moving just on the Y, that would be

    lerp(startY,endY, f * dt)

    startY is the Y at startpoint

    endy is the Y at endpoint

    f is the speed (something between 50 and 120) in pixels/tick (kinda/sorta)

    So lets say, menu sits at y = -100

    It has to slide to y = 50

    at a speed 60

    Set y position menu > lerp(-100,50,60 * dt)

  • Not sure why you insist on using a Function. If you really want too, i can show you.

    But. Consider this.

    'On x Destroyed' is allready a function with as parameter(0): the destroyd object. It gets called by a trigger, just automaticaly and with not headaches.

    See:

    https://

    drive.google.com/open?id=0B1SSuCVV8v74amROMHVHR3lKU28

  • I presume you dont have acces to famelies.

    Allow me to offer you 2 warnings.

    1/ I am not an expert.

    2/ I am pretty sure that there is no easy solution.

    Two more general things.

    On Collision is a trigger. In your Cap none of the 'sprites' is moving. So its kinda useless to use On Collision. The trigger keeps firing.

    Because the trigger keeps firing, your Cap is in a state of an endless loop. You should be more carefull with that.

    Now. Your problem. Why is it not that easy?

    Well, when using 'on collision' condition on all those 'sprites' a big list of sprites is returned as a result in the Selected Object List (official term, wich i call 'the picklist'). 15 in your case.

    On top, you want to compare them in pairs.

    Is one's flag 0 and the other one's flag 1, then do this(), if they overlap.

    This Cap is one way to do it. The ListObject gives inside on whats happening. Lists are awsome debugging helpers.

    https://

    drive.google.com/open?id=0B1SSuCVV8v74RTkzNWVRS0llVXM

    You will see 'pick all' conditions.

    Why?

    The conditions before those 'pick all' conditions narrowed down The Picklist.

    The 'sprite' that needed to be tested was not any more in The Picklist.

    Therfore, enlarge The Picklist was needed.

  • Well. Imagine you have some walls, floors and enemys hiding behind them. The walls and floors are solid and are needed that way for, by instance, a platform behaviour.

    Would you like the walls and floors to be included in the picklist generated by a LOS condition ?

  • I would do it this way:

    https://

    drive.google.com/open?id=0B1SSuCVV8v74ZGJVNG5UMGVjenM

    Not pretending that this is the best solution.

  • I must be missing something, i dont see a 'sometimes' happen. Plz explain ?

99Instances2Go's avatar

99Instances2Go

Member since 12 Feb, 2016

Twitter
99Instances2Go has 2 followers

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies