Bug or not ? 2 windows only one draws something, and can't use variables

About Monkey 2 Forums Monkey 2 Development Bug or not ? 2 windows only one draws something, and can't use variables

This topic contains 3 replies, has 2 voices, and was last updated by  gcmartijn 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3569

    gcmartijn
    Participant

    My first attempt to use two windows fails because the ‘second’ / last loaded window (editor) is not drawing anything.

    My idea is to separate the game and the editor, and the game is actual ‘playing’, and with the ‘live’ editor window I can change things.

    After the first problem I get another one the interaction between the two windows.

    #3582

    Mark Sibly
    Keymaster

    Multilpe windows has NOT been thoroughly tested yet is likely to cause problems!

    Also, you can only use multiple windows on desktop targets, not mobile/web.

    #3589

    gcmartijn
    Participant

    I understand, its a desktop editor to create games while running them.

    Don’t know if you are going to do a rough check in the near future so I wait.

    #3853

    gcmartijn
    Participant

    I know you may don’t have time for this but maybe you can see the problem what I discovered here.

    When you run this code above, then the editor window is on top, and is black.
    You see in the GameWindow the a text in the top.

    Magic 1
    When you press +/- 10px below the middle inside the Editor window (there is the button located), then everything is visible in the Editor window !

    Magic 2
    But the GameWindow din’t update, because now some new magic will happen.
    Uncomment the line

    When you do the same as Magic 1 above, then nothing will be visible inside the Editor window.
    But the GameWindow will will update the text like I want !

    Magic 3

    Comment the line above again, and now the bonus magic.
    Change the line in the top to this

    With this the string is larger, and what do you think: magic 1 is now not working, only by making the text a longer.

     

    Then I thought, what do people say about sdl two windows, so I can use that.
    But using some examples in combination with the bananas/sdl2test gives the same output.
    http://stackoverflow.com/questions/21691450/how-to-create-a-subwindow-using-sdl
    http://stackoverflow.com/questions/22227811/sdl2-and-opengl-functions-with-two-windows

    I don’t know if MX2 is doing something wrong or SDL.
    Now I’m thinking about this, maybe I switch back to a in game editor window that you can move around like the /bananas/calculator

    It has some pros and cons to do a editor in game or in a external editor window.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.