Ashley's Recent Forum Activity

  • Have you tried the sprite packs that come with Construct 2?

  • Potato - it will be updated in event 8 since it's the next top-level event (as in, not a subevent to anything else). That's also when the IIDs are updated, because the object still actually exists until then.

  • Dalal - Else doesn't really make much sense following a 'trigger once'...

    Arima has the best solution - simply put 'trigger once' in a subevent. However the action will be run after the other actions instead of before. If that makes a difference, you can use a blank subevent after 'trigger once' and move your actions there.

  • Yes, you can separate variables in this format:

    a=value1&b=value2&c=value3...

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Families and Sprites pick instances totally separately. So it is actually intended behavior if you make this event:

    + Mouse clicked on Family1

    -> Set text1 to Family1.Expression

    -> Set text2 to SpriteInFamily1.Expression

    then 'Family1.Expression' returns the expression for the clicked Family1 instance, but 'SpriteInFamily1.Expression' returns as if it were an unreferenced object. It doesn't matter that it's in the family, it may as well be a different sprite not involved in the event at all, because families keep their own picked instances. Some users deliberately take advantage of this fact to be able to set up advanced picking, e.g. handling collisions.

    Knowing that, perhaps this is not a bug and just a misunderstanding?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • newt - they won't be affected. The only thing is whether or not 'for each' still iterates it, and the object count, IIRC.

  • Firstly, the JSON snippet you have used is more like a dictionary map than an array. It's not a sequence of elements, it's associating "success" with "true", and so on. This is a better fit for the Dictionary plugin which is coming in the next beta.

    Secondly your JSON must be in a special format for Construct 2 - look at the value returned from Array's AsJSON expression for a 1 x 1 x 1 array:

    {
        "c2array": true,
        "size": [1,1,1],
        "data":[[[0]]]
    }

    Your JSON must also match this format for Array. It's designed to only be used with JSON returned from other Array objects.

  • I can assure you there is no limit on the number of variables you can use anywhere in Construct 2. Are you sure this is not just a problem with your events?

  • I've changed the next build to clean up destroyed instances between top-level events, like Classic does. Hopefully that's a good enough fix? It's really hard in the engine to clean it up in a subevent, I don't think we can support that.

  • Woah, this was a complicated .capx. There are actually three issues combined:

    1: like Physics, manually adjusting the Platform behavior's position confuses it. What happens is when by a wall, you set its X to a bit to the right - that wedges the object inside the wall slightly. Then you test 'is by wall' - the platform behavior thinks it's stuck inside a solid, so returns false. At the end of the tick the platform behavior pushes itself outside the solid as part of its ordinary collision detection, and the cycle repeats - the condition is always false.

    Solution: use 'simulate control' to control platform behavior, instead of manually setting position.

    2: 'is on screen' was always false for the first tick in a layout. So negated 'is on screen' was always true for the first tick. This is a bug and has been fixed for the next build.

    3: OR blocks did not work correctly as subevents to 'for each' loops. This is a bug and should also be fixed for the next build.

    Nice .capx, got two fixes out of it :)

Ashley's avatar

Ashley

Online Now
Early Adopter

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

Twitter
Ashley has 1,831,624 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