Guif0DA's Forum Posts

  • Global variables can be accessed like this:

    globalvar('ip')[/code:1mbdgx9g]
    
    System.Close does work but you have to put parenthesis at the end since it is a action:
    [code:1mbdgx9g]System.Close()[/code:1mbdgx9g]
    
    And that bug is because scripting is enabled, 700 objects created and no scripts being run.
    There are two ways to avoid that bug:
    1 If you aren't using python at all but uncheck "enable scripting"
    2 Just run a script every frame.  It doesn't even have to do anything, a comment will work.
    

    I cant get the global thing to work..

    I made a script like this:

    host = globalvar('ip')

    got an error..

    tryed

    host = System.globalvar('ip')

    but didn't worked too.. i guess doesn't ever have this option on my construct cuz it doesn't appear in the right column..

  • Hey!

    I was messing with the 3d box object and I saw some strange thing.. there is a ''hole'' in the front of the box and I can see everything inside the box... how do I fix that?

    thanks!

  • Hey

    While I was trying to understand scripts with python I came with a doubt..

    in examples like chat_client from the tutorial there are some functions like network_players and I really don't know where I can find that function on podsixnet, there are only a few files like connection but none has this function in.. Probably im doing it wrong..

    Just trying to understand this functions, there is a place where I can find all functions and how to use them or this is just a random name for a function created in the game?

  • yea it crashes alot..

    and it's nothing about graphic driver in my guess.. i have a really simple graphic card with updated driver and it crashes too in some occasions.

  • It's pretty simple from python, but it will require the ctypes library so you'll have to install python to get it to work.

    Add a Window object to your cap and run this at the start of the layout:

    from ctypes import *
    hwnd=Window.AppWindow
    region=windll.gdi32.CreateEllipticRgn(0,0,640,480)
    windll.user32.SetWindowRgn(hwnd,region,0)[/code:1jv5c9ha]
    

    Excelent

    thanks for info

    just a question...if i want to make it back after to the 'normal' window form, how do I make?

  • Unfortunately, the minimap object is made to work with the entire layout, so taking a chunk of that isn't currently possible.

    Ultimately, the minimap object as it is isn't as robust as it could be, and the devs are more worried about fixing bugs in Construct itself. If I can find the time I'll take a crack at creating an updated version of the plugin that has more features.

    if you make an updated version of it please try to add the function I said on first post

  • Like the title said, can I make a script that can read a global variable?

    like..

    ip - global variable (xxx.xx.x.x)

    script:

    host = global('ip')

    ??

    tried some ways but none worked, it is possible? if so, how?

    thanks

    edit:

    in script:

    System.Close seems not working, I'm doing something wrong??

    also guess i found a bug..

    700 objects with physics behaviour in the same layout = crash..

  • heyy

    I was testing the minimap obj, it's a very simple object and powerful, great job Scirra

    but for my purpose it not working how I would it to be..

    I'm trying to make a minimap of just a small area around the player, not the whole layout... example.. my map has 6000x6000 size, in the minimap it's showing all the area and my idea would it to show only the places,objects, etc, near the player..

    is it possible? with a diferent object maybe?

    ty!

  • Don't know if you can have more than one per layout, but since the layout object is bugged, it's suggested not to use it at all.

    Besides that I don't think layouts can share info at the same time.

    Might try the minimap object on a separate layer with scrollx, scrolly, set to 0.

    thanks for reply, do u know exacly what is the bug of layout object? I'm new at construct, moved from MMF2.

  • Try Construct 3

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

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

    I made 2 layout objects showing the same frame but with different size(one would be a minimap) but only 1 layout obj. appears during the runtime... is it possible to display 2 layout obj showing the same img at the same time?

    ty

  • I've never tried full screen with an editbox until now, and I see it doesn't work correctly.

    I would guess that it doesn't work well because full screen uses DirectX to display, and it doesn't play well with Windows API. I don't know...

    I don't see a way to fix that, other than not using full screen.

    Perhaps you can use the Text object, or SpriteFont Plugin to do the display portion instead of the EditBox. If input is needed, there is an Input plugin in the WIP plugins forum that could be used for that. I'm sure that it's possible to emulate an EditBox.

    any idea how to make a text object scrolls down and have options to scroll up and down? I'm having some dificulties here hehe

  • The EditBox is a Windows object, so it does not behave like most other Construct objects do, such as sprites.

    I'm not aware of any way to change any of the things that you have mentioned, other than the position and size of it.

    I don't think that there is a 'On window resized' condition, but you could store the current size at start of layout in a couple of global variables, and compare those against the current size each tick, then resize the EditBox based upon the change if they are different. Then set the stored size to the current size...

    The System object has expressions under it's Display category for the display size, and the Window object has similar expressions for window size.

    If I activate the fullscreen mode the editbox actually changes his size but it become invisible and nothing appear when writing, I can see the size is right because of the mouse pointer...

    any solution you may know how make it become visible with fullscreen mode? this would already help..

  • with python it's possible, I'm beginning to using construct so i can't really help with online but yea mMF's mooclick is outdated, there are other extensions alot better for that like lacewing but only for patchs 249 or above and to get them you ill need to pay for mmf.. =/

    but ya, construct can do online games

    search the tutorial page and look for online games

  • Hi. In my experience, those options just make it so that the text contained by the EditBox can be larger than the box itself.

    If you're looking to make it scroll so that you can see text that has been added to the EditBox through events, you can use the EditBox's Set Selection action to force it to show any area in the text.

    The following simple example would add the amount of time that the application has been running in a new line each time the LMB is pressed, then set a null-selection the end of the text.

    + MouseKeyboard: On Left mouse button Clicked

    -> EditBox: Append text Timer & NewLine

    -> EditBox: Select characters len(EditBox.Text) to len(EditBox.Text)

    thanks it worked, but now I got a new question.. It's possible to put a different background color on edit box? it's always white and also, how do I change the Font, color font, size of the font of the Edit Box? And finally, when I maximize my screen the edit box is not expanding, it stay in the same place with the same size, nothing happens..

    thanks for help!

  • Hello

    I made an edit box in my project and I checked the ''autoscroll'' options but it's not scrolling. Not sure if it's working properly...

    There is a manual way to do this with events or scripts, if so, how?

    Sorry for my bad english =/

    thanks for any help!