AVIX's Recent Forum Activity

  • It's better explained here I think. The thing is, that it would seem that maximizing or restoring the browser doesn't fire the "On resize" event.

    The example is just a sprite that covers the viewport and adapts to it whenever the size changes (through the "On resize" event). When I change the window size using the maximize or restore buttons this doesn't happen. Am I missing something?

    Eventually, what I'm trying to do is pause a game if it is not in landscape or the aspect ratio is not appropriate.

  • Sorry for the bump Ashley but I haven't found a workaround for this last bit yet...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    Double clicking a sprite from the projects bar when the project is opened with no layouts gives the message "Please open a layout before editing an object texture" . Upon closing the dialog the animation frames window still shows and C2 crashes when closing it.

    Attach a Capx

    [attachment=0:2dh7hwpd][/attachment:2dh7hwpd]

    Description of Capx

    To produce a capx that gives this error follow next steps:

    • Open C2 and create a new project.
    • Create a sprite with one instance.
    • Right click the event sheet tab and select "close all but this".
    • Save and quit.

    Steps to Reproduce Bug

    • Open the capx you just created or the one attached.
    • Double click the sprite from the project bar to edit it.
    • Close the warning dialog.
    • Close the Animation frame window.

    Observed Result

    C2 crashes after closing any of the windows from the image editor.

    Expected Result

    Never show the sprite edit related windows if there's no layout active.

    Affected Browsers

    C2 Editor error.

    Operating System and Service Pack

    Windows 7 Ultimate 64bit SP1

    Construct 2 Version ID

    r168 (also happens with last beta r167.2).

  • Problem Description

    Error popped up on undoing after autosave. Previously I had events an actions involving a family, then replaced them to a member of this family.

    Couldn't reproduce, so there´s no capx

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Active project has changed, but undo button has not reflected the new project's undo
    
    Condition: project == last_undo_project
    File: MainFrm.cpp
    Line: 1051
    Function: void __cdecl CMainFrame::OnUndoOne(void)
    Build: release 167.2 (64-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 0)
    
    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way.  Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports!  Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
    [/code:ifsbteyg]
    
    Next message after hitting "Abort":
    
    [code:ifsbteyg]
    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Object texture leak: a texture is still loaded when cleaning up an ObjectTexture, check all textures released properly
    
    Condition: gl_instances.empty()
    File: Projects\ObjectTexture.cpp
    Line: 33
    Function: __cdecl ObjectTexture::~ObjectTexture(void)
    Build: release 167.2 (64-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 0)
    
    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way.  Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports!  Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
    [/code:ifsbteyg]
    
    [b]Affected Browsers[/b]
    None. C2 event view error.
        
    [b]Operating System and Service Pack[/b]
    Windows 7 Ultimate SP1 64bit
        
    [b]Construct 2 Version ID[/b]
    Beta r167.2
  • The time scale does not affect triggers. It does however affect the 'Wait' action, so 'Wait 0.2 seconds' will never complete when the time scale is 0.

    Great. I knew before I added the wait it was working; between all the tests I got confused...

    But now I don't now how to resolve the fact that in chrome the sprite doesn't position correctly when maximizing or restoring the window. Did you happen to see this other link? You can check with this same example tough. In Firefox works better, in IE the same as Chrome. In an android tablet with Chrome happens the same when rotating the screen.

    PD: Ups, just noticed there's a spelling error in the file name. Should be "posicionado".

  • Sorry to bother with this. I'm having doubts and issues I'm not sure how to resolve. I would like to know (if someone have the time to explain it to me, Ashley ?) how the time scale affects triggers.

    I have a function called on browser resize which creates and position a sprite over the viewport (more on this here) if it's in portrait (just to make sure it's played in landscape) and destroy it otherwise. I'm also setting the time scale to zero so as to pause the game. This brings some issues, because the function never gets called again. Is this how it's supposed to work? Why a mouse trigger works while timescale=0 and an on resize trigger does not? Is it a bug?

    Thanks,

    Juan.

  • Browser: On resized: Wait 0.1s, call function "position"

    Excellent! I knew there was a quick fix. Thanks.

    Nevertheless, don't you think it should work without waiting?

  • I'm trying to resize a sprite to match the viewport. I resize and position the sprite in a "On resize" event.

    the thing is that in Chrome browser doesn't work correctly and in Firefox it does most of the time with some glitches. Haven't tested in IE yet.

    One correction to the above (and the important thing): It works if I resize the browser window from the corner but it seems that the trigger doesn't fire correctly on maximizing and restoring the window

    I wanted to share this before I posted it to Bugs to see if I'm missing something.

    The capx: [attachment=1:20hhx215][/attachment:20hhx215]

    Thanks!

  • Thanks for the answers!

    I hope that plugins for the editor gets in the features queue. It would extend C2 capabilities amazingly

  • Yes, multiple instances. I've been looking at the Spriter plugin but I can't find where the magic is.

    What I want is something "simple": parse a json with references to objects and positions and recreate them in the layout view.

    Can anyone point me in the right direction (if it exists)?

  • I've been through the entire dev forum but I still am not sure. I've read that Ashley wanted to extend the capabilities of the SDK but I don't know what happened with that idea.

    Just to be clear, is it possible for a plugin create instances of an object edittime?

  • I'm not sure where to post suggestion, feature, improvements, etc...

    This is just a small suggestion for the Drag&Drop behaviour:

    Possibility to change axes in runtime

    I've encountered a few times the need to limit the movement on a particular axis on runtime. I know I can mimic the behaviour with events but Drag&Drop does a better job with multitouch.

    So basically I would add a new action:

    Set axes with a combobox with three options Both; Horizontal; Vertical.

    There's really not that much code to add since it's practically programmed.

    Thanks ASHLEY.

AVIX's avatar

AVIX

Early Adopter

Member since 16 Aug, 2012

None one is following AVIX yet!

Connect with AVIX

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies