LittleStain's Forum Posts

  • Would The clamp expression work for you?

    clamp(x, lower, upper)

    Return lower if x is less than lower, upper if x is greater than upper, else return x.

    https://www.scirra.com/manual/126/system-expressions

  • I'm not sure what you mean by output of file, could you explain?

  • You mean this:

    https://www.scirra.com/academy/shooting ... assets.zip

    I found this link in the description of the tutorial on Youtube..

    Took me about 30 seconds..

  • It works perfectly..

    Once the shield collides with the hole, both events are true so both events are executed, so both characters are picked..

    I guess a much better way to do this is put the shield in a container with the character, that way when referencing the shield, automatically the right character is picked..

    Shield-Container

  • You could add a condition to the event that makes them rush towards you..

    system compare two values: distance(you.x,you.y,enemy.x,enemy.y) > 128

    Maybe you need to have an else event to stop their movement, that all depends on the way you have set things up..

  • I guess you mean something like this:

    Distance Scale

  • there is also event..System pick by comparison

    now you can add ad another condision...pick nearest..

    That would only work if the other coordinate is exactly the same, right?

    Maybe a sprite is between y-values would solve that..

    Without knowing what the exact aim of this check is though, I chose not to limit the comparison in any way..

    I would recommend adding other conditions to my event, so the amount of sprite2 that are being compared are less and maybe the moment when it is done is not every tick..

  • Something like this?

    Example R218

  • If you could share your capx, I could have a look..

  • if there is any logic in the way the value increases, there should be a way to tell the program that..

    You might have a variable already present in the object(s) that you can use..

    Another option might be adding a condition "is on layer" or something similar before setting the variable..

    Setting everything is not what you want, so in the worst case even using 60 conditions would get more satisfactory results..

  • >

    > > Greetings Construct 2 community, I am currently looking at buying game creation software for my own personal use for myself and games for friends/family.

    > >

    > > After a week of research I have my final choice down to two packages, Clickteam Fusion 2.5 or Scirra Construct 2. If you would answer some questions I have, it would help my final decision.

    > >

    > > 1: can I truly create a game with ^NO^ programming whatsoever?

    > > 2: can someone who pretty much sucked at school and mathamatics create games? (for example, like Jetpack Joyride)

    > > 3: can I output native windows code in a single .exe file?

    > > 4: Would you recommend I buy a book to learn it, or pay for an online course?

    > > 5: is it viable to create a roleplaying game with this software? (no, I'm not silly enough to expect to make a new Skyrim, but something like the old bards tale games?)

    > >

    > > Thank you

    > >

    >

    > Why not download the free version and try before you buy?

    >

    Thats a good idea but ideally I don't want to spend a few weeks testing something, I'd rather get feedback off people and buy or not buy right now. just the way I am.

    Well, I wouldn't want to make you someone else..

    But if you download and look at the examples shipped with Construct2 (which would take less time than waiting for an answer) most of your questions will be answered..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well they can't be in a layout under the character, so I guess you mean layer..

    If they are in a layer under the character they can never show in front, so this must be untrue..

    Are you spawning your objects in the right layer?

    Is the character moved to a different layer in the events?

    Would it help to have an on collision event - move character to top?

  • System every x seconds starts counting from the start of the app..

    As resetting the start of the app isn't possible, you could for example add a wait-period at the start of layout before activating the event..

    Another way would be to use timer behaviour instead of the every x seconds, or just add 1 to a global variable (which you can reset before restarting) every second and have the actions performed when variable%5 = 0..

  • Seems like you would want a for each animal, instead of a for each tree, but I might misunderstand the event..

  • Not really, Your second action of event 28 is setting HP of all familymembers of the "layer" family to LayerHP..

    If you don't want this to happen, why have that action?