Guif0DA's Recent Forum Activity

  • quick look into python>

    http://www.scirra.com/help/ <--- look for online tutorial

  • You could Google 'IcoFX' (its a FREE icon editor)

    or Google 'free icon software'.

    There is many free apps out there! good luck

    thanks for tips

  • Can I create my own Icons for the apps or dxgames I made in Construct? like mmf?

    if so, how?

    thanks and great program!

  • > there functions (network_players,etc)teclared in the tutorials they exist or is just a random name for them?

    > where I can find all the functions and their definitions??

    >

    First, thanks for trying out the Tut. It would probably help to post this in the Online tutorial thread since it would be easy for me to overlook it otherwise.

    Anyways..the naming of the functions is covered in the tutorial but basically... In podsixnet all user written functions in the client need to start with "Network_" then I added the "players" part to make the function Network_players. This function is right in the .cap file for the client.

    def Network_players(self, data):
          playertext = ("*** players: " + ", ".join([p for p in data['players']]))
          statusBox.AppendText(playertext + "\n")[/code:28kftdwz]
    
    The above function is in the client code that YOU write.  Then in the server you call the code by performing a "player" action like below:
    [code:28kftdwz]   def SendPlayers(self):
          self.SendToAll({"action": "players", "players": [p.nickname for p in self.players]})[/code:28kftdwz]
    
    You also write the above function.  
    
    So the client waits for a network packet with an action of "players" from the server.  When that happens then the function Network_players is called and the data from the server is handled by the client.
    
    Hope this makes sense.
    

    I think I understood

    sry for my bad english first of all.. and thanks one more time for the help

    you first get the ''function' like network that exist in the podsixnet then add a random name and in the server file must be smething declared with that random name to work..that's it?

    makes sense then

  • You could use global variables

  • Please, no one??

    I'll try to explain in a better way..

    there functions (network_players,etc)teclared in the tutorials they exist or is just a random name for them?

    where I can find all the functions and their definitions??

  • in the death menu you could use a global variable or internal variable to set to 1 only when u die and the dialog ''death'' box would only be used after variable was 1..

    like if you die->death variable=1

    and if you retry in the deathmenu->death variable=0

  • Are global variables broken in python? They work for me. The crash related to text global variables was fixed a few builds ago. I made a typo with the syntax of accessing global variables in my other post. I forgot the "System.".

    System.globalvar('ip')[/code:1g5s642u]
    The name of the variable is case sensitive.  Is the name "ip" or "IP" in your cap?
    Also globalvar doesn't show in the right bar, it's just not listed.
    

    it was 'IP' and it worked now! thanks alot

  • family.count is bugged and isn't going to get fixed for 1.0 because the fix for it breaks construct in a much more significant way (tho I can't recall how).

    To get the same result, you can use: for each object, add 1 to a variable.

    thanks for the information

    hope it get fixed soon

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dude something wrong with your construct...

    i made some testgames to see how much the PC can handle, memory, pc usage, etc...

    3000 objects(sprites) in the visible screen with 50+fps

    640x480 window..

    quad core, 4gb

  • try make it global.

    properties-common->global

  • You can't access global variable strings through Python without a crash...at least the last time I used Construct that was the case.

    My guess is that "ip" is a string... I see what you were probably getting at since you could use events as a workaround to still set a Python variable.

    Hope this helps!

    so variables it gives crash, ya.. and from what i can see, even the function 'globalvar' doesn't exist in the right table after I write 'System' and a dot...

    global numbers work at least?

    ya IP was a string like '127.0.0.1'

    the solution I found is in the first layout make a edit box with the ip, press enter and it saves in globalvar 'IP' the editbox.text

    next layout there are a invisible text object that at the beginning of the frame it sets his text to global 'IP' and during the python script the host gets the text from the invisible text object..

    there is a simple way??

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