sqiddster's Recent Forum Activity

  • Hi,

    I have a function that creates a number of objects. I want to reference these objects as a group (i.e. pick them all together) after they have been created, in the same tick. C2 seems to have an issue with this however, as for some reason, the objects don't seem to exist right after being spawned.

    In the example code above (and the attached capx) you can see that it's a pretty straightforward function call which spawns a number of objects. After the call, their animation frames should be changed. However, they don't - the only instance which gets a frame change is one already in the layout before the function is called.

    I'm not looking for a specific workaround for the above example, what I'm looking for is a way to pick all the objects that were spawned by the function in the same tick, and in the same event branch. for example, this works as intended:

    But it's not a solution for me because (in my actual implementation) these events happen within another function:

    For clarification: I'm not looking for a workaround to get this specific example working - I'm looking for a way to fix this within the constrants set (picking all the objects in the same tick, in the same event branch.)

    I'm pretty sure the problem has to do with an issue I remember reading about, something about objects not being created until the next top-level event or something.

    Is there any way to get around this?

    Thanks!

  • Yeah, it would be awesome for my game because it would totally make people throw up in like 3 seconds. Pretty hilarious

  • jobel good to know that it's a NW issue and not an issue with the game.

    rogerwang how do you think we could attempt to work this out? I'm willing to help you however I can.

  • Good lord, I'm getting 10fps on my gaming laptop!

  • It would matter for things like Steam Cloud, transferring saves easily etc

  • alvarop thank you so much! I'm glad it wasn't laggy for you. Hopefully I can work with the NW people to get it sorted out for everyone soon!

  • jobel Thanks! Glad you enjoyed it. Yep, apparently it runs great on macbook pro laptops

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yeah definitely would be a good feature but I'll have to say that it should be a fairly low priority

  • I'd definitely expect some miniscule performance difference, but yeah, anything above that would be news to me.

  • Hey all,

    I had a chance to chat with Aurel at PAX the other day, and have a look at the code for The Next Penelope (It's AMAZING by the way!). Something interesting I noticed was that he was using particles for all objects which didn't need collision. i.e. there would be a one-shot particle that would emit one particle with 0 velocity. I don't do this in my game, so we discussed it and we couldn't figure out if particles are actually less intensive than objects when you aren't checking for collision.

    Is this the case? I had always assumed that collision is irrelevant if you don't actually have any collision events with that object, but I can't cite a source for that.

  • TunaUppercut OK, so I think that makes it pretty clear that it's a NW issue. The intro scene *is* pretty demanding...

    rogerwang I'd like to help you work this out, is there anything I can give you to help out with it?

  • TunaUppercut aha,, that's interesting. Fullscreen mode isn't supposed to change anything at all!

    If you have time, could you give this Chrome demo a shot, see how that works? (ignore the weird loading screen text, left that in by mistake)

    If it works for you in fullscreen we'll know that NW has a fullscreen issue.

    https://dl.dropboxusercontent.com/u/419 ... index.html

    Thanks!

sqiddster's avatar

sqiddster

Member since 5 Sep, 2011

Twitter
sqiddster has 4 followers

Connect with sqiddster

Trophy Case

  • 13-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

16/44
How to earn trophies