dop2000's Forum Posts

  • I would try disabling big chunks of code and try to find the exact event that's causing this error. I vaguely remember seeing this error before (edit: found it), I think it had something to do with layers, z-sorting..

  • I don't know. It may be possible with some addon.

    Or maybe upload or send the file to some webserver, and give user the download link. (or open this link with "Browser go to url", which will invoke file download, but from the browser, not from the app)

  • assigning the Level-x-Events and including the Game-Events

    This one.

    You don't want level2-specific events in your level1, which will happen if you include all level-x-events into the Game-Events sheet.

  • I have put some actions on "end of layout" (without any loops). I have tried to destroy some objects before changing layout and I have even put a wait 0 sec to ensure the freeze doent happen.

    You don't need to delete objects (unless they are set as Global), and you definitely should not use Wait in "On end of layout" event.

    Does it always happen with the same two layouts? Try adding "Browser log" at the end of layout1 and at the start of layout2, this will tell you when the problem happens exactly.

    Also try disabling "On end of layout" and "On start of layout" events, see if the problem goes away. If it does, there must be something in these events.

    Check if you have any global objects that don't need to be global, fix them..

    If nothing helps, please share your project file.

  • Every day I see more and more spam messages on this forum. Right now the first several pages of the "C3 General Discussion" subforum are completely flooded with spam posts.

    Has the sign-in captcha been removed, or have bots learned how to fool it?

  • The gamma-correct gradient may be mathematically correct, but it looks wrong compared to gradients produced by other tools (like Photoshop, Corel Draw, Gimp etc.) The grey area in the middle is too large. It would be nice to have a option to choose gradient method.

    Also, what is the "sprite gradient" everybody is talking about in this thread?

  • I'm not very experienced with JSON, so there may be an easier way to do this, but here is my attempt:

    dropbox.com/s/og79bsmogm41hws/JSON_Array.c3p

    .

    EDIT: wow, this is my 5000th post! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was hoping "Move to object" would follow the object, but it's actually the same as Move to (Object.x, Object.y)

  • You can't have a mix of AND+OR with several combined conditions, you probably need to use a boolean variable:

    Is button1 up
    Is button2 up
    	Set b=true
    
    else
    Is button3 up
    Is button4 up
    	Set b=true
    
    If b then .........
    

    But if you are comparing some property that can be accessed in expression, or an instance variable, then you can do it in one line:

    if ((Button1.isUp & Button2.isUp) | (Button3.isUp & Button4.isUp))

  • Here is my example I made for some other post:

    dropbox.com/s/wj1vpn641t7mjct/SpritefontWithBlinkingCursor.capx

  • Your ButtonText1 object is not pinned to the button! That's why it's lagging.

    Pin updates object position at the end of the tick, after all other events. So your event "On every tick ButtonText1 set position to button" is executed, and then Pin behavior moves the button to another position. And the text is left behind!

    You need to pin the text to the button, or (preferably) to the parent panel.

    .

    So, to sum up, you can double-pin and avoid the lag if you created objects in the right order. Or you can position multiple objects one to another with events without pinning. But don't position an object to another pinned and moving object. This will always cause lagging.

  • Can you share your project file?

  • Pass button's UID in function parameters, and pick family instance inside the function by this UID.

  • Also, you should probably build your string like this: