dop2000's Forum Posts

  • You need to pick the right spawner instance inside the function. Add another function parameter - SpawnerUID. Pass Respawn.UID when calling the function. Inside the function use "Respawn Pick by unique ID" condition.

    Or you can set "Copy picked" in function properties, then they should inherit the picked scope.

  • You want the frame to be the same for all instances? Then assign it to a variable:

    set r to random(sprite.animationFrameCount)

    Sprite set frame to r

  • For example, when I pick by IID, if the IID exists then all the sprites will be picked.

    I believe the problem is not with picking. When you load an image into a sprite, all sprite instances receive the same image. If you want to load different images to different instances, you have to use multiple animation frames. Say, if you have 10 sprites, create 10 empty frames and set a different frame for each instance.

    By the way, if you want to pair each canvas with a sprite instance, you can add them to a container. This will simplify picking, creating and destroying.

  • Yeah, the site is construct.net haha

    You can upload your game to the Arcade:

    construct.net/en/free-online-games

  • BaconSwagg Good example! But since tile index is zero-based, the loops should end at Tilemap.MapDisplayWidht-1 and Tilemap.MapDisplayHeight-1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    What do you mean by that? Personally I hate ads and wouldn't add them in my games, but looking at the IAP plugin, if this plugin would be working on web, and not just mobile, I would already be very happy. Or am I missing something?

    The official plugin still doesn't support subscriptions. It's lacking some other features, which are present in Chadori's Billing addon - product verification, receipts, promocodes etc. And yeah, both plugins are for mobile only.

    I don't know if it's feasible to support all those AD networks. But none of the publishers we were working with used Admob for ad mediation.

    I totally agree that Scirra should collaborate with big addon creators like Chadori or Mikal - perhaps give their addons an "official" or "recommended" status, provide support and ensure compatibility.

  • Check z-elevation, it may override z-ordering.

    And make sure there are no other events which can change z-order.

    I can't think of anything else that can cause this problem.

  • So what exactly happens? The page crashes, or the editor displays an error?

    Try incognito mode or a different browser. Try unpacking the C3P file into a folder and opening it as a folder project.

  • No, the mask should have opaque pixels to work. But with the right blend modes it will be invisible to users.

  • Try to replicate the problem in a small test project, make sure it works in old C3 release and is broken in new C3. Then file a bug report:

    github.com/Scirra/Construct-bugs/issues

    This is a problem with backward compatibility, so it should be quickly fixed.

  • Well, it's hard to tell what could be wrong without the project file. One possible reason is that the object you are trying to move to top/bottom hasn't been created yet. If you create the object in the same tick, you have to wait until the end of the tick in other events to pick and make changes to it.

    Try adding a test event and see if it works:

    On key "Z" pressed -> Object move to bottom of layer

  • Check out this post:

    construct.net/en/forum/construct-3/how-do-i-8/detect-sol-empty-181557

    You can do the same:

    Array var1=value1
    Array var2=value2 
    
    Else : Call function
    
  • I suggest running the project in Debug Mode (Shift+F4). Check each object - make sure it's on the right layer, check their z-index and z-elevation.

    I noticed that you have a bunch of "Wait for previous action to complete" on your second screenshot. It should only be used with asynchronous actions, the way you are using it is wrong and it potentially can cause some bugs. If you need to wait till the end of the tick, use "Wait 0 seconds"