vtrix's Recent Forum Activity

  • it depends of how YOU like to work, I would use 1 evensheet for all

    and just make groups

    splashscreen

    directions screen

    8rooms

    room1

    room2

    ...

    endscreen

  • you can also use tokenat from system expressions

    from the manual:

    tokenat(src, index, separator)

    Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.

  • Kyatric, appreciate the help but this is a very simple example, i was using the enemy and player var as a "state" where under everything is related to the enemy or the player, so i dont have to repeat the statement and can have multiple actions or conditions under this, i think it makes sense

    i already had a working version, if you add isplayer var to the trigger is works, so i rather was asking why it didnt take its parent condition into account, where does it state that triggers are "out of the code" can i have comfirmation that this is the only way it suppose to work Ashley

  • Ashley

    capx

    so in this example, i would expect that the parent event picks the right object and the subevent would add to the correct counter, instead they are adding up on each    ( press space to add to counter )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • <img src="http://dl.dropbox.com/u/61666915/eventing.png" border="0" />

    i was thinking that subevents keep the picked objects

    the image shows a working version, but without the additional var comparison, the counters add up to eachother(both the hpfight objects), so the picking must be wrong and doesnt account for the parent comparisment

    any idea why it would do it like this?

  • ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    GetBehaviorInstanceFor(): object instance does not have an associated behavior instance

    Condition: i != instances.end()

    File: Projects\BehaviorType.cpp

    Line: 183

    Function: class BehaviorInstance &__cdecl BehaviorType::GetBehaviorInstanceFor(class ObjectInstance &)

    Build: release 91 (64-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

    i added solid behavior to family behaviors, first it worked, then i added an extra object to the family, when running i got this message, ignore made it crash..

  • I extended the example how you could do this

    capx

  • no, its fine now, .. thats alot of events for a countdown, im not a fan of the wait function, i sometimes have trouble with it, i also see that the timings are off,strange..., but in my example you can reset the "start" and "attoken" var to restart the countdown

  • Made this example, hope it helps!

    cant open your file on dropbox, .. now i can

    capx

  • its because it picks the button on top, a better way to make this, is using a switch like this

    switch

    i made a boolean variable in the green button,

    then on click i switch the boolean on or off

    then depending on the status of the boolean, its green or red

  • does this help?

    capx

  • rojohound very nice, thank you!

vtrix's avatar

vtrix

Member since 24 Jul, 2011

None one is following vtrix yet!

Connect with vtrix

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Email Verified

Progress

15/44
How to earn trophies

Blogs