Ashley's Recent Forum Activity

  • The problem is the event runs with two instances of 'Sprite' picked. Then you spawn 'Sprite3' from 'Sprite', which creates two 'Sprite3' instances. Then the actions that follow apply to both 'Sprite3' instances. In particular 'Pin to Sprite' takes an object parameter, and the way the C2 engine works this does not pair up instances, it will just find one 'Sprite' and use that for both actions on 'Sprite3'. If you add a 'for each' condition it then properly runs the actions once per instance, spawning one object at a time and applying the actions for just that one spawned instance. As far as I can see this entirely fixes the problem in general, there should not be any other problems from doing that.

  • Have you tried the 'Visual Studio 2012 Dark' style?

  • Honestly I'm a really scared that an auto updating webview, more than nodewebkit, could break a perfectly working game without any action from the user (or even knowing it really).

    Google already manage to do this without breaking the entire Internet, so I'm sure apps will be fine too.

  • Is it possible to obtain expression for specific UID or currently picked instance just like IID does(Sprite(0).X)? I would like to use them.

    IIRC, back in the early days, Sprite(N).X would actually look up the Sprite with the UID N and return its X position, but it got changed to index because it was more useful. I can't recollect the exact rationale now, it was too long ago, but just thinking about it now it does seem more straightforward since Sprite(0) always returns the first picked instance, Sprite(1) the second picked, etc. without needing to know any UIDs.

    If you want to get expressions from an object with a specific UID you can already use 'Pick by UID', and put 'Pick all' before it if you want to also be able to pick objects which don't match the parent events.

  • You do not have permission to view this post

  • It's still not always possible if the angle has changed and it's too big to fit in its current position or indeed anywhere within a few pixels in any direction. In this case it considers itself trapped and resorts to a find-the-nearest-gap algorithm which works in an 8-direction pattern and probably doesn't find the nearby gap because it doesn't align with any of the directions it's searching down.

    Changing the angle on bouncing in a tight area is a really complicated problem, the best thing to do really is to just not change the angle!

  • ilimi - if you disable "cache icons for better performance" in Preferences, does it fix it?

  • I guess sometimes they're oversights. Could you make a list of all the missing ones you want added and then I can go through them and add them?

  • FYI none of our official export options support WKWebView right now, in particular because it has bugs that prevent Cordova supporting it, so it sounds like you're using an unsupported export process anyway?

  • To me the best way would be to finish running the event sheet (which includes finishing the trigger events, so basically stopping the sheet) THEN destroy all objects and change layout.

    It already does that, but destroying objects just before changing layout still triggers 'On destroyed' for those instances (since they're being destroyed by the engine). Triggers still work normally in this case and then you end up creating a new object halfway through the engine's process of switching layout. This is a really awkward time to create a new instance. If the engine then destroyed that instance again, then it risks firing another trigger which creates another instance which the engine then also needs to destroy, creating an infinite loop and hanging (this is what my reply to the other linked bug report was getting at). So it doesn't try, it just destroys everything then switches layout, and if any new objects were created they end up on the next layout.

    The workaround should be simple: in the 'go to layout' action set a flag to disable the creation of new objects in 'on destroyed' triggers.

    I can't reproduce the "drawing instance on wrong layer" error in the .capx you provided, so I have not attempted to investigate that. Please file a new report with a .capx that reproduces that particular issue if you want me to have a look at that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 27 Oct, 2026

Twitter
Ashley has 1,834,678 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x6
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs