Jonathan5's Forum Posts

  • Can Construct 2 open or launch .exes from a user's desktop? I'm inclined to think this ins't possible, but are there any workarounds or hack-y bypasses?

  • As Trevor mentioned, it would be wise to use boolean operators such as:

    if findpath == True:[/code:1siuge8w]
    
    or
    
    [code:1siuge8w]if findpath == 1:[/code:1siuge8w]
  • help yourself to a slice

    <img src="http://i54.tinypic.com/30mqvd3.png">

  • If you haven't already, I suggest you make a prototype or demo. Then, you can get a hands on feel and base your decision from that.

  • As RomanCenturion has suggested,

    Every 7000 milliseconds

    Generator: Is on-screen - System create Monster on layer 1 at (gen x, gen y)

    or you could assign a private variable to the generator (we'll call it 'Alive')

    Ever 7000 milliseconds

    Generator: Value 'Alive' Equal to 1 - System create Monster on layer 1 at (gen x, gen y)

  • How far have you gotten?

  • If no one's said it yet, I thinking getting Construct to work with general PC controllers, not just the 360 control type, is a must. If you want this to go bigger and more public with a solid release, people are going to be expecting being able to use their generic PC controllers.

    If I'm not mistaken, there's two control types, right? XBox 360 has its own type, so it's good that got out of the way, and then there's a universal type for all the rest? 360, and PC? I can't remember what the non-360 control type is called though...

    But seriously, if anything, getting Construct to work with general PC controllers should be a top priority for 1.0.

    Would this work?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Age of Empires is a great game. It would be cool to play a similar game made in Construct. Anyways, good luck on your project and keep us updated!

  • ya, I know, I get the comment sign mixed up with other programming languages. I believe "//" is java, right?

    Yes and many other languages too.

    That's probably a good idea. Could this be used to substitute for an array? I wouldn't be using it to save the game, but it would store values with 3 keys (ex. (x,y,z) or (1,2,1)).

    I'm not entirely sure, but I'd presume so.

  • Just in-case you didn't know, "#" is how you make a comment in Python, not "//". I'm not too familiar with Python, but you might be able to save sometime by using a dictionary to store your global variables.

  • Nice. I might use this for my game. Just a heads up, I know this is pseudo code, but I'm pretty sure it would go like this:

    1 # Level[/code:opv9c5ma]
    
    instead of:
    
    [code:opv9c5ma]1 // Level[/code:opv9c5ma]
    
    # = comment in Python.
  • For the problem with Sysinfo.. have you added the SysInfo object to your project and if you have multiple layouts, is it global?

    Doh! Can't believe I missed that. Thank you! I knew it was going to be something silly

    For the myserver problem.. are you accessing "myserver" before you set the value of myserver?

    This is no longer a problem now that I have Sysinfo working.

    I had another question (if you don't mind) and it could quite possibly be irrelevant with the network code, but I wanted to allow the client to press the Enter key as well as clicking the 'Send' button to send a message to the server. I thought a simple solution would be using the OR event in between: On talk button pressed and Enter key pressed. So it would look like this:

    On talkButton clicked

    OR

    On key Enter pressed

    connection.Send({"action": "message", "message": chatBox.Text})

    But that seems to cause an infinite loop because the message continually sends. I know I could just make pressing the Enter key a separate event, but I was just curious about this OR operator. Sorry if that has nothing to do with this. I appreciate the help.

  • Hello. First off, (if I haven't already) I'd like to give my thanks for the tutorial. Anyways, I tried making my own chat application, but I can't get it to work. When I run the server app, type in the port, and click the 'Start Listening' button I get an error.

    Traceback (most recent call last):

    File "<string>", line 3, in <module>

    NameError: name 'SysInfo' is not defined

    When I click okay it's followed by another error.

    Traceback (most recent call last):

    File "<string>", line 1, in <module>

    NameError: name 'myserver' is not defined

    I copied and pasted the code from the example chat. The example .cap file works when I run it. That's what I don't get. I exported it to an .exe and imported all the necessary python modules, but I still received error messages. I installed the PodSix library properly too and replaced the .pyc files. Any idea/suggestions?

  • Wow! It runs fine on my machine. This is an interesting concept and I think it has a lot of potential. I can't wait to see more.

    Edit:

    My God! I just realized you can land on the planets

  • Some auto-saves or checkpoints would be nice.