dop2000's Forum Posts

  • Why did you add "under normal user profile"? Does it work under admin account?

    What happens when you preview? Press F12 in preview window, open Colsole tab and see if there are any errors.

    .

    It's probably unrelated, but I had an issue lately - preview was only working with disabled "Use worker" option. Updated desktop build and it was fixed.

  • I would ignore the yellow warning.

    What's very weird is why browser log for line 127 is triggered on every tick, and there is no message for line 126. Are you sure event 127 is nested (sub-event) under event 126? It should definitely not be triggered without clicking the Load button.

    Or maybe you copied Browser Log for line 127 somewhere else and forgot to change it?

  • If you need a condition to check if any "attack_x" animation has ended you can do this:

    Player On any animation ended
    System compare two values: left(Player.AnimationName,6)="attack"
    

    .

    If you need to know the number (x) of current attack animation, you can do something like this:

    Set AttackNumber to int(tokenat(Player.AnimationName, 1, "_"))
    If AttackNumber=1 : Weapon1 destroy
    If AttackNumber=2 : Weapon2 destroy
    ....
    
  • I must say, I only understood maybe 30% of your explanation.. But I see one issue with your code:

    In line 71 you are checking "if the doors being overlapped share the same LayerDepthLevel values". But the problem is - if 2 or 3 doors are picked by the parent "is overlapping" event, this condition will only test the first door. And if its LayerDepthLevel is different from Spy.LayerDepthLevel, none of the sub-events will work.

    If you need to check if any of the picked doors have the same LayerDepthLevel as in Spy, you need to rewrite this condition:

    Doors compare variable LayerDepthLevel=Spy.LayerDepthLevel

    Note, that this event will further filter the picked Doors (for example, if 2 doors were picked by overlapping, only 1 door may become picked after comparing LayerDepthLevel)

    .

    Now, if you need to check that all overlapped doors have the same LayerDepthLevel as Spy, you need to use PickedCount expression. Save Doors.PickedCount in a local variable in event 70, then in event 71 compare Doors.PickedCount with that variable. (event 71 still needs to be rewritten as above)

  • I don't know, it's hard to do troubleshooting with screenshots.

    Disable or remove Undo system completely. Add different "Browser Log" debug messages in all events where you are saving or which may trigger the save. Try to find why the game is saved so many times, there is something in your code that's doing it.

  • When a game is running in a web page, it can't enter full-screen automatically. You can only request full screen mode after any user input - touch or mouse event. For example "Touch On tap -> request full screen".

    For your second question, you probably need to change the project scaling mode to Scale Inner or Scale Outer and enable scrolling (Unbounded scrollig=yes in layout properties).

    Or make your own keyboard that doesn't mess with the screen:

    construct.net/en/tutorials/mobile-keyboard-and-hall-of-fame-for-all-mobile-devices-738

  • If you want to clear memory used by this sprite:

    Sprite destroy
    Wait 0
    System unload unused images from memory
    

    If you need to keep the sprite, you can load 1x1 px image into it instead of destroying:

    Sprite load image from URL: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" 
    

    You need to do this for every frame, and then unload imaged.

  • sleepingpanda Thanks for the info.

    Why haven't you removed your game? These scammers are profiting from it and not paying you any money..

  • I don't know. Did you hit save button 94 times?

    Try disabling the undo system temporarily and test without it, maybe it's messing things up.

  • Thank you, Macbee. I built the apk with min SDK version 17, so you probably won't be able to install it on your phone.

  • If you want to check if a variable contains any state, you can do this:

    If left(CurrentState, 6)="state_"

    If you need to check states in a loop:

    Repeat 10 times
    	If CurrentState= "state_"&loopindex
    
  • It's probably not related, but why do you set IsUndoSave to true in event 124? Remove this action.

    Press F12 and open browser console when fps drops and you have problems with saving, see if there are any errors in the console log. Or maybe you'll see that your game is saved many times per second..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, AllanR, but I need Android 4.2 device. I've already tested on several versions including Android 4.4 and it works. But it doesn't work in 4.2 emulator, so I wanted to test on a physical device.

  • It can be. But then your game will simply not start, so you don't have to worry about this :)