megatronx's Forum Posts

  • | gets evaluated to either 1 or 0. 1 if either, or both are true, 0 if neither are true.

    It does not return the value that was evaluated. You set that up in the conditionals "?", and ":".

    So there's multiple parts.

    The conditional:

    statement ?value if true :else

    The or as a statment:

    (1=0|1=2)=0

    No its not js, it's the dummied down version of parts of js.

    Sorry. I'm not sure how I should go about it. I'd like to turn those conditions in to one condition per image:

    or

    Could you give me example based on those?

    Thanks

  • bump

  • Its a conditional. It tests if a statement is true, and says what to do if it's true (?), and what to do if it's not(:)

    1=1 ?set x to 9 :set x to 2

    Since 1 is equal to 1 it would do whatever follows the question mark.

    If it wasn't it would set it to whatever was after the colon.

    Ok. So you are saying I should add brackets? I don't need that part after ? at this point although I do use it sometimes.

  • I'd hold off until the new C3 runtime, and sdk comes out.

    There's new engine expected for c3?

  • I use a lot of families that keep behaviors and variables, but those stop me now from adding certain objects from different family, to a new family with which they'd share common actions.

  • More like:

    (x=a|x=b)=1 ?foo :foo2

    It returns a Boolean.

    What's foo? Function?

    Could you expand your example? Just bit confused. Atm I want to check weather a value at current X and Y is = A or B. Then I want to follow with actions. But I'm open to learning more too.

  • Awesome, thanks guys. Will check it out.

  • I don't get it... Are you trying to convert a String into an array separating by "|"?

    If yes, you can use the tokenat() System expression.

    > tokenat(Text, Index, Separator)

    >

    No, I'm talking about condition Array.curx, Array.cury = "A" | "B" . This doesn't seam to work.

  • Can I check values with "|" in expression? Cause I tired that with checking array value and it doesn't work. But maybe I'm doing something wrong? cheers

  • Jaydon

    purplemonkey

    Here is a modified shake behavior, fixed bug of shaking all instances and added "Condition:On shacking end".

    Behavior

    sample capx

    This is really great! Thanks! However, any chance to have a freqency param? Cheers

  • I thought I replied to this thread already!

    you can do it using Is Mirror condition:

    On button touch

    • Is mirrored: Set Not Mirrored, do other stuff

    Else: Set Mirrored, do other stuff

    And you good to go

  • Greetings,

    Can you guys suggest ideas/concepts on how to make an RPG game? What mechanics and sprite assets to use?

    I think best place to start will be rpg maker, since it has everything you need for rpg, and will help you learn what you need to know.

  • I'll chip in my 3 cents since I've been using construct sine construct classic v0.033. For a long while I've been using i5 4200u laptop ( my workstation is far away in another country), and GM games I played seam to perform better. I've played Nuclear Throne and Hyper Light Drifter ( thought this one only work stable 60fps when using external audio interface for sound processing ). My way smaller in scope projects perform much much worse thought, and I do optimise and keep my events as logical as possible. Window size makes a huge difference too. So benchmarks are all good and dandy, but once you start applying logic to the game, it starts falling flat. But point and click games like Deponia should work flawlessly thought, although games like Rayman will most probably lag every now and then unless you wont have that many interactive elements on the layout. But overall it's not that bad, but always creates the feeling that "it's not there yet" and that is always disappointing, sometimes giving you a falls impression that if you will do more then it will certainly be fixed, but it won't , and you will waste a lot of your time. Also, will those jerky frames on the beginning of layout will ever be taken care off by the scirra? Only construct does that.

    I know I sound harsh, but this is how it is on my side.

  • You can have multiple families. You could have all enemies in the Enemies family, as well as Mele and Projectile families. So you can pick all enemies easily, and then picking by Mele, on the UID, which only works if the object is Mele, and at the same level underneath, try picking the Projectile by UID, which again only works if the object is in Projectile. So the events only run based on the secondary family.

    I have states and enemy types right now working in similar fashion. But thanks for an answer.

    I just have an idea, to create boo named busy, and so when I'm picking objects on the screen before "for each" I'll narrow that with "isbusy" condition. Will do that for some of the actions outside For Each. Might help in performance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'd like to freeze frame, but can't seam to find a way to do it with TimeScale. "Wait" action seams to be influenced by it. Events themselves too, as I tried setting timescale to 0 but after that for a one object with timer I set timescale to default, and still it didn't work. Any suggestions? Cheers