vtrix's Forum Posts

  • 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 )

  • <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!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ive implemented my way of doing switches

    not sure what the colors do..

    grid

  • should the event "is on layer" not work?,

    for each objects is on layer "solid" set solid enabled

    is not on layer "solid" set disabled

    + then you can move objects from and to this layer if needed

  • can you share the capx?

    edit: maybe the buttons are just removed from the layout but are still in the project...

  • is it hard to do maybe? any idea's?

  • hey working on my shipbattle system :)

    i got some problems,

    basicly is want to know if my ship should shoot left or right or both

    i had something going but it doesnt work for multiple ships

    i was thinking of using pickedcount and is clockwise or not, so when there

    nr of ships is clockwise, enable right shooting

    nr of ships is counterclock enable left shooting

    but it doesnt work

    by the way, should pickedcount not give a -1 or something if nothing is picked, its not very usefull like this

    i prepared a cap for testing, so if somebody wants to help, cause im hitting a wall here <img src="smileys/smiley5.gif" border="0" align="middle">

    http://dl.dropbox.com/u/61666915/navalbattle2.capx

  • Thank you for the help Kyatric,

    yes for the moment i was trying to get the first six going, depending on upgrades you could get 18 cannons in total/ 9 on each side, hopefully i can get that to work

    i was messing with the loop number because the imagepoints i needed started at 1, but it was wrong approach i guess

    thanks again