99Instances2Go's Recent Forum Activity

  • Event 2 always sets Event 3 true.

    Its is not so that the 'on tap' in event 2 steals the 'on tap' in event 3.

    They are triggers. Triggers fire when that event, what they are designed to catch, happens.

    Every condition that starts with 'on' is a trigger.

    So if you have a thousandth 'on tap gesture', they all trigger when the 'tap' happens. And since you make event 3 always true (by setting the layer visible in event 2, and by having a fullscreen button), event 3 will trigger always when event 2 triggers.

    Tinkering about a solid solution for you.

  • fisholith

    Man, i was very happy with your post. I've been pondering to answer the question for hours. But i did not know how. I was about to start explaining how an alpha channel works for a simple foreground/background situation. And then make the step to how Blending is no more then 'blending' two alpha channels (with there foreground) into the background. But, as said, did not know how to make that a 'for dummys story', as asked.

  • This only spawns health for the first enemy

    Well, no. Not really.

    It is 'Trigger once while true' not 'Trigger once'.

    It triggers once when the event containing that 'Trigger once while true' is true.

    When it is the only condition in that event it will trigger only that one time ... that it self runs as being true.

    And one would think that this event (containing no more conditions) cant be set to false again (actually resetting the trigger).

    That is true when it is a root event.

    But, mind the logic, this true/false has (as every variable does) a scope.

    (read about scopes --->https://www.scirra.com/manual/83/variables)

    Is it a root event, then the scope is the big tick loop.

    Bring it in a sub loop, and the scope is that loop. It will actually reset each iteration.

    I know that this make it worthless in a loop.

  • About

    "either because they're just the reverse of a more manageable mode described above, or because they don't appear to work, as is the case with XOR."

    Xor is not not supported in the WebGL. Works with WebGL disabled.

  • Assuming that there is only 1 player.

    System > pick by comparison ... object = NPC ... Expression = NPC.Y .. less or equal .. value = PLAYER.Y

    _____action ... NPC > move to object .. Where = behind .. object = PLAYER

    System > pick by comparison ... object = NPC ... Expression = NPC.Y .. greater than .. value = PLAYER.Y

    _____action ... NPC > move to object .. Where = in front .. object = PLAYER

  • If there is no total 'idle' state, it does not matter.

    I mean ... if each object for sure has state A, B, or C, needing actions for each state.

    If you really want to squeeze out the last possible iteration, then use Browser object to log an (local variable) iteration counter.

    But, watch the logic. The 'foreach char' is not always needed, when things are not personal.

    Example.

    foreach char < ------- unnecessary

    state = A (is dead)

    ____destroy

    state = A (is dead)

    foreach char < ------- unnecessary

    __destroy

  • Pick the one that you want to 'clone'. (and only that one, do not create a picklist containing more sprites)

    Store its expression Sprite.AsJSON in a local text variable.

    Create object somewhere outside screen or so, does not matter.

    Use the action .... Sprite > Set from JSON ... to set the Just Created sprite to the local variable.

    The 'clone' should now be exact.

    Meaning, now you have to set its positions and other things that that you want to be different.

  • ^^^^ Forgot that can be a negative value.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://www.scirra.com/manual/158/third-party-addons

    It is a behaviour. Attach it to an object the same way as any other behaviour.

    Yes that means a lot of re-coding. Got to change every line using physics to use chipmunk in stead.

    The other option is to set world gravity to zero and make you own gravity by applying physics forces/impulses.

  • I dont think you can with the official Physics.

    You can with chipmunk.

  • Global variable UpgradeResource (text) = "Wood" (or whatever is required for a level)

    Global variable NeededResources (number) = required amount

    Add all the resources as keys to an dictionary, assign values, and update them while gathering resources.

    Now you can ...

    Dictionary > Compare value > Key = UpgradeResource ... > .. Value = NeededResources

    __________action ... level up

    That, ofcourse, works fine until you need more 'NeededResources' to level up. At one point you could feel the need to level up when there is 500 wood and 1200 iron gathered.

    Then you come back, and i will advise you to not use that logic that you so really want to use at this point. Just bring it all in 1 array.

    Alternative. You can make a global for each resource, holding whats needed to upgrading.

    Global 'wood' = 20

    Global 'iron' = 0

    Global 'meat' = 55

    Using a dictionary .....

    Dictionary > Compare value > Key = "wood" (a string) ... > .. Value = 'wood' (the global) - 1

    Dictionary > Compare value > Key = "iron" ... > .. Value = 'iron' - 1

    Dictionary > Compare value > Key = "meat" ... > .. Value = 'meat' - 1

    _______actions whatever you want to do to perform a level up

    Arrays & Dictionaries are just, and not more then, a variable holding more values. You should not shy away from them.

    You will need them for 100 % sure at one point. Can as well start using now in a not to complicated logic.

    Want to stay with the concept of globals. No problem. Just cant do that logic that you so weirdly want to do.

    3 Globals.

    1 for each resource, holding whats needed to upgrading.

    Global 'LvUwood' = 20

    Global 'LvUiron' = 0

    Global 'LvUmeat' = 55

    3 Globals.

    1 for each current gatherd resource.

    Global 'CuRwood' = updating while gathering

    Global 'CuRiron' = updating while gathering

    Global 'CuRmeat' = updating while gathering

    System compare 2 values > 'Curwood' > 'LvUwood' -1

    System compare 2 values > 'CuRiron' > 'LvUiron' -1

    System compare 2 values > 'CuRmeat' > 'LvUmeat' -1

    _____________Actions .... level up

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