Guif0DA's Recent Forum Activity

  • Containers isn't the solution, the family would be the solution is in theory the same as the qualities of MMF, create a group of many objects to use at events, like destroy all of'em.. change location of all objects, make all of them enemies, etc..

    but from what i tested family isn't exacly working, i made a text obj and set text to get number objects of family 'x' and it's not counting all of them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • While I can't be sure of exactly what you're needing, I'm thinking that you might want to read up on containers. It seems like they could be of use to you.

    ill take a look, thanks.

    also, not about this topic but do u know if construct can create icons for the applications? if so, where?

  • Hello

    Im having some trouble trying to group some objects..

    in MMF I can agroup them with qualifiers but in Construct the qualifier is the families right?

    the problem is that it can only have same objects types in a family...

    I was trying to group some text objects, gradient objects and box object in one family so after awhile I could delete all from this family...

  • > already got the online tutorial and none of them have inside script something like get global value, all of them uses the normal events to do that.

    >

    You would think I would know since I wrote the tut...

    Here are a couple of examples from the tut that get a global variable value:

    connection.Send({'action': 'winner', 'player': System.globalvar('myNum')})[/code:2b1isbqs]
    
    [code:2b1isbqs]connection.Send({'action': 'gotkey', 'player': System.globalvar('myNum'), 'keyuid': System.globalvar('myuid')})[/code:2b1isbqs]
    
    This accesses the global variables:  myNum and myuid.
    
    Edit:  Is "host" in your example a Python variable?  If it is not, that example will not work.
    

    here is teh script, would it work?

    Start Layout

    host = System.globalvar('ip')
    port = 1203
    myclient = Client(host, port)[/code:2b1isbqs]
    
    also thanks for replies
  • Look at the Online Networking Tutorial with Python on the forums..... it has lots of examples of using Python with Global and Private variables. It should help you with your syntax problems.

    Just make sure you are using the latest version of Construct. Even the version used for the original tut has some major Python bugs.

    already got the online tutorial and none of them have inside script something like get global value, all of them uses the normal events to do that.

  • Nevermind, fixed it!

    need to activate 3d mode in layer options!

  • 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

Guif0DA's avatar

Guif0DA

Member since 5 Dec, 2010

None one is following Guif0DA yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies