codah's Forum Posts

  • Nah it's fine, I knew what you meant, it's just that it might confuse a beginner (not necessarily the OP)

  • By my (little) experience, CJs is much faster than intel.

    This seems to be contrary to what I keep reading in the forums. Very confusing.

  • You can't spawn a specific family member. I would use the nickname plugin and give each monster type a nickname "beast_0", "beast_1" etc. then spawn based on [quote:39g7ikjs]"beast_" & beast_box.box_id

    Or there might be other plugins that work more like the way you're expecting a Family to work.

    Otherwise you could have an IF block and if a square is 0, spawn monster type 0, etc.

  • Line3 in the first picture is [ELSEIF: Do something], so after that you have "imaginary Line4" with [ELSE: Do nothing].

    Line3 in 2nd picture is [ELSE: Do something].

    In your first picture, Line3 fired because the variable: pause is updated to 1in line2.

    I disagree that it's an ELSEIF

    It's basically:

    IF <condition1> THEN <action1> ENDIF

    IF <condition2> THEN <action2> ENDIF

    not

    IF <condition1> THEN <action1>

    ELSEIF <condition2> THEN <action2>

    ENDIF

    In the former BOTH actions can execute (and in fact did; thus the OP's problem).

    In the latter only ONE action can execute.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi. Just wondering why you guys choose CocoonJS over XDK/CrossWalk for Android. Thanks.

  • No worries, they are useful mainly in saving you doing a lot of picking of related objects. Families are another way to group (more categorise) objects.

  • looks like I misinterpreted the OP He did want random equations!

  • Have you looked at using a container? That can help with some aspects of 'grouping' objects together.

  • Edit: ignore, misread the OP sorry

    [quote:3rmyn1y1]Local number MyVar = 0

    System:Every Tick -> System: Add 5 to MyVar

    Note you don't really want 'every tick', I used that as a 'placholder' event. The above will add 5 to MyVar about 60 times a second <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Edit:

    This is probably where you should start in the manual https://www.scirra.com/manual/83/variables

    And also the word 'random' has many connotations, maybe 'arbitrary' would be better. Also you'll see references to 'expressions' in the manual which is what you meant by 'formula'. Good luck

  • Generally you will add a new array for each different purpose. It's just a data structure, don't hesitate to use it.

  • You do not have permission to view this post

  • Sure. (This assumes you're previewing in the Chrome browser.) Add a 'Browser plugin' object if you don't already have it. Then at strategic places in your events (where you want to see if an event has been triggered, or what a variable value currently is) add a Browser;Log action, and log some text. e.g. "Variable1 = " & Variable1 or "Function xyz() has been called" or whatever. Preview your game (doesn't have to be in debug mode) and hit F12 in Chrome. Choose "Console" up the top and interact with your game. For more info look up "Browser" under Plugins in the manual.

  • Chances of a C2 bug, about 0.1%. Chances of logic error, 99.9% You could post the capx. Do you have any debugging stuff in there? Like logging messages/values to the debug console? You'd find it in about 10 minutes I reckon.

  • Sorry man no time now. Add a Browser object and Log something at each event (e.g. angle value).. you will work it out.

  • One thing, it's looking for touch events on layer "wheel". Change Layer 3 to be Wheel