czarus321's Forum Posts

  • 13 posts
  • Yep, just edited my response to

    Does this work?

    nah my friend its going to spawn same sprite 4 times i want to just once so it must be not subevent

    AllanR give the best solution

  • new objects are not pickable until the next top level event. the Wait 0 defers actions until the end of the eventsheet - so new objects can then be picked. You need to move the "Pick Table_ were slot = 1" to be a sub event under were the Wait 0 is. Right now it is out at the previous level, so it is not getting deferred.

    another option would be to add a sub event under the loop that says: if loopindex = 1 : spawn capsule...

    because then the new table_ object will still be active.

    THAT WORKS ! ! ! ! thanks to you buddy priceless informations btw

  • I may not have understood the question, but have you tried?

    i tried that but if you look closely it makes that event run 4 times i found that is closest solution for me

  • look like this only doesnt work in this func when i do it outside of func it works normally

    it also works as subevent of for loop

    but

    it doesnt work if i do pick event as another function

    i think this is cause for loop and pick running at the same time when instance dont have allready variable "slot" but i dont see any solution for that

    i tried wait for signal but it doesnt work i did event then in action wait for signal in a subevent i made pick by comparision and action but nothing happens

    edit

    yea its definitly about same time of running both events but signalling doesnt help at all :C

  • if i did it right sorry bro doesnt work :/

    but btw

    did events run in order from higher to lowest if they are at same level?

  • hello guys i have problem with picking by comparision first i check i developer start and so problem is capsule instance not spawning at all when i delete condition it works fine spawning at every table instance one capsule instance i tried also to run without delete func and also i checked if variables are fine i mean "slot" var i tried add wait time b4 spawn like 1 sec this doesnt help too any ideas ?

  • oh ok i just didnt know how to do that till i found this auto picking last created i was sure it will change to all instances but many thanks

  • UID is bad idea if you create instance by event cause you only know UID when you run app...

    pick last created is bad idea cause i dont get linked to target instance

    but when creating instance of object by event there is always auto - picking last created in the event

    so...

    i can Make new Variable in object --> create new instance in event --> after this action edit in next action variable to give this instance custom UID --> make new event every tick condition and add another condition which is pick by comparision Myvariable == MyCustomUID

    if anyone have better solution always be glad to read it

    Many Regards

  • Move it into its own event, not a sub event

    yea but i have multiple instance of text object so if i do new event this will occurs on all instances instead of this one

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • maybe is other way if its possible to link this instance to another event so i can refresh text by re-set text

  • here you go

  • well i wanted to make unique instance of text and in subevent every tick update text message variables but seems like construct just ignore this subevent and end like its never exist any solutions for this?

  • 13 posts