Cybergod's Recent Forum Activity

  • Yes Minor you hit the nail on the head or however you frase it, LOL.

    Your example explains a lot of what I am trying to do. Think of the old Amiga game ELITE, <HTML>http://en.wikipedia.org/wiki/Elite_(video_game)</HTML> but in a 2D environment with a LOT more planetary data.

    Basically it's Elite on steroids. I started making this in C a few years back but got derailed with RL issues and lost my HDD in a crash so all my files disappeared and I lost interest. But, now with Construct I figured I'd give it another try. I thought it was going to be easy with the knowledge I have of C but that was NOT the case as I have discovered lol.

    Anyways yes your example is fairly easy to implement bits and pieces into my game. As a matter of fact it's AMAZING how much you can do with so little in Construct when you really know it like you do.

    Thx again and look for more questions in the near future from me hahaha.

    Thx guys!

  • Ya I see what you are saying but to do it that way is possibly not doable in larger universe.

    Say for example you have a playfield, x=0, y=y to x=5000, y=5000. A fairly large playfield.

    Now you like to have 200 planets. You want pre-defined names, so you need a list of 200 names.

    You want a random placement of the planets through plx=(1+random(5000)) and ply=1+random(5000)

    Now if we do like the above example you would have to make a sprite object, 200 of them and

    fit them in on the screen just so you can pre-define some values to them.

    This is where C++ came in handy with its classes, vectors and arrays.

    Or what do you think?

  • Well it really has to be predefined. The values should be like following,

    <PlanetName> This is predefined (Char Variable)

    <PlanetMass> This is Predefined (Long Variable)

    <PlanetX> This can be random(x) on creation of object (Integer)

    <PlanetY> This can be random(x) on creation of object (Integer)

    So basically a couple things need to be predefined and some items can be random on creation or randomly predefined.

    Hope this explains it a little better and I really appreciate the help. I understand it can be hard to understand what someone is asking just through writing.

  • Minor

    You know what, this really wont work either.

    I have been playing around with it and because you have local instances of the x,y you can not randomize the locations out. For example

    On Start Of Layout Create Object Planet at X=(random(500), Y=random(300)

    This above capx you where kind enough to through together for me will only allow you to pre-place the planets and not randomize out tyhe x & y coordinates.

    Thx for the try though, still looking at it to figure it out and will post here if and when I do.

  • Minor

    Ahh omg I thought you had to set it manually in the eventsheet

    with the

    "Set PLX to random(500)"

    "Set PLName "Planet1""

    and so forth in the Add Action lol.

    Im only about 2 weeks into Construct 2 but yah sometimes it can get really frustrating trying to convert C++ thinking into Visual Thinking hehe.

    Thx alot mate, this helps ALOT!

  • Minor

    Hrm, pretty much what Im looking for, but, where did you put the individual planet info/data???? lol.

  • Hrm, do you guys mean local instances variables? I was thinking down the line might have issues trying to call local instance variables. If you have other objects traversing my little 2D universe if you dont have a "planet" visiable you can not collide or discover that object unless you add a lot of invisible collision objects.

    It all takes time moving from a programming language to a visual design, but it can get Soooooooo frustrating haha.

    Thx for the info, will look into the instance variables some more see if I cant figure out how to access them globally etc.

  • Ok I am going completely nuts here. Construct 2 is not easy coming from a C oriented language and trying to work without objective thinking. For 2 days I have searched and tried to figure out how to make something as simple as 2 planets that have either and x,y and a name or id of some sort.

    In C we would implement a class

    class planets

    {

    planets planet;

    planet.name={"Planet1","Planet2"};

    planet.x={235,14};

    planet.y={45,398};

    };

    etc, etc. You could call these and for ex. print a sprite at planet.x and planet.y locations etc.

    I want these to be saved values. I was thinking of a array such as planet[name_char][x_int][y_int] but I can not figure out how to do this in Construct 2.

    1. How do I store values in a 3 dimensional array maybe?

    2. How would I go about puting a sprite on the screen with that arrays data?

    3. Can you do this with a 3 dimensional array or should you do it some other way?

    Like I said for 2 days this simple little stupid function and I cant figure it out. I much have read through 200 forum posts or more and 40 tutorials!

    Please help!

  • Time for the Introduction post.

    I programmed ASM, C and C++ in the past, mostly just as a hobby. Began learning JAVA but somehow it really did not make much sense to me. I played around with Game Maker but it lacked a lot of functions. Played around with Unity but was a tad bit complicated for my expertise. Found Construct 2 and love how easy everything falls into place.

    Coming from the world of C++ I see myself constantly trying to implement functions like in C++ and forget this is not a programming environment like C++ and stumble on some minor issues. But with the simplicity of design Construct 2 really makes it easy to stumble right back in the drivers seat.

    I am now a hobbyist / Indie game programmer / designer. I would like to get more into this as I have always loved programming games but never really released anything. I hope Construct 2 will help me there!

    Anyways, like everyone else that gets into game design I have a ton of ideas on how I can make a game Soooo much better, that is the whole reason why I got into this in from the start.

    I am going to post a lot of questions so bare with me

    Thx.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just to help someone else out that may be stuck on this.

    Download Node.js from http://nodejs.org/

    After you have done this, check C:\Users\YOURCOMPUTERNAME\AppData\Roaming for a directory called npm

    If it does NOT exist, make the directory and call it npm

    Then start a command prompt, see to it that you use RUN AS ADMINISTRATOR, go into the directory whereever you uncompressed the socket.io file and go to the server directory

    Now type npm install. It should find all the dependencies correctly.

    If you get npm ERR! or ENOENT, open xxxxxx this means usually that the directory npm is not created. Also check your PATH and see that the npm is in your path.

  • Hello community.

    First of all, I suggest a Multiplayer only discussion implemented, there is a ton of questions out there all over the place.

    Ok I dont think the multiplayer with it's signal server is correct for my usage. What I want to do is this.,

    Have a server that stores information such as players login, password, players life, location in game, players inventory such as money and items.

    Player logs on, server retrieves info, player has a fun time playing game.

    Game client connects to game server basically.

    I dont see this possible connecting to a "Signaling Server" ?

    Any suggestions, someone out there has had to run into this problem before but when you search, I come up empty. Maybe Im using wrong search wording???

    Thx.

  • The website gamep.co is registered to the guy on the bottom of the page but it is not up. I think it might be ok but would still be careful.

    His facebook page https://www.facebook.com/people/Aris-Ko ... 6095805405 is pretty lifeless.

    His other businesses like Swift Ebook Studio seams to be a no go.

    It could just be a startup thingy. Unless they start asking for money I would say sign up with a spam account.

    Just my 2 cents.

Cybergod's avatar

Cybergod

Member since 27 Oct, 2014

None one is following Cybergod yet!

Connect with Cybergod

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies