thegamedev's Forum Posts

  • 9 posts
  • "Universal gravitation" is the formula you'd want to look at to do the gravity force between two objects.

    Force = G*mass1*mass2/distance^2

    That's the magnitude of the force, the direction is toward each other.

    Now an object will orbit another if it's velocity is perpendicular to the direction of the other object and it's speed is sqrt(massOther/distance).

    Here's my test of it:

    https://dl.dropboxusercontent.com/u/542 ... imple.capx

    Now I haven't played solar but considering a good orbit just doesn't happen then I suspect that some additional force is used to steer the smaller objects to get in a good orbit.

    i think you should play Solar 2 for few minutes. get a demo of the game

    you can find it here

    indiedb[Dot]com/games/solar-2/downloads/solar-2-demo

    actually what you did is made a real like simulation, but in solar when a steroid is captured it just start orbiting around it in a uniform way, i mean it just start orbiting in an orbit close to the planet, and when you capture another steroid it start orbiting in another orbit, like this they always orbit around planet no matter how much speed you gain after capturing them or no matter how much mass your planet gain, they don't go away (of course its not like actual physics, but games have to have some elements unlike full reality),

    even though, your help is very much appreciated, at least now i got a start point <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    thank you so much for that.

  • "Universal gravitation" is the formula you'd want to look at to do the gravity force between two objects.

    Force = G*mass1*mass2/distance^2

    That's the magnitude of the force, the direction is toward each other.

    Now an object will orbit another if it's velocity is perpendicular to the direction of the other object and it's speed is sqrt(massOther/distance).

    Here's my test of it:

    https://dl.dropboxusercontent.com/u/542 ... imple.capx

    Now I haven't played solar but considering a good orbit just doesn't happen then I suspect that some additional force is used to steer the smaller objects to get in a good orbit.

    i think what you said is the answer, but i can't open your file, it says it was made in newer version, but i already have latest Construct 2 r239,

    am i missing something?

    Edit: never mind, i got it. it's beta, i'll check it soon.

  • drive.google.com/open (;

    hey i'm very happy that you took time to reply, i just got away thinking nobody is gonna reply.

    but the physics you made is not of gravity of stars, it's only for rocks collide with each other and getting bigger, that is an easy part

    but if you play solar 2, you will see rock getting bigger and bigger and it becomes a small planet, and then that planet is not to collide with rocks, but to capture rocks so that they can rotate around planet, that rotation and gravity is what i am looking for,

    can you make an example of that? gravity between planets and stars, and capturing rocks around planets orbits?

    even i think i can work around and make rocks orbit around a planet when rock comes near planet, but that is not neat / clean way, if you play solar you will see how clean is the physics of solar bodies pulling each other (gravity) and rocks captures if you just pass by them with a planet. that is what i find very difficult,

    please try if you can?

    thank you so much in advance.

  • Most likely an updater.

    You might check the app manifest and see if there's anything relevant there.

    i don't know how to do that?

    If you run an empty nw.exe does it have the same behaviour?

    yeah, check it yourself if you have a firewall. i just tested a new empty project exported through nwjs, and it just tried to contact on...

    IP: 172.217.23.78 (Google again)

    Protocol: TCP

    port: 80

    btw i am using windows 7 64bit ultimate. and it's totally virus free. because i'm very concerned about security and thats why this connection of internet specially to google! makes me uncomfortable. if i own a game i must decide if it can go online or not.

  • Perhaps no one knows.... The browser object has a flag to indicate whether you're online or offline. It could be that - it cannot detect whether you're online without testing it. Does your firewall indicate where the attempted connection was being made to?

    i just captured two IPs now.

    IP: 216.58.205.174 (Google Inc.)

    Protocol: TCP

    port: 80

    IP: 221.120.207.20 (PTCL) (PTCL is my ISP)

    Protocol: TCP

    port: 80

    first thing came to my mind that it's pinging, second thing it's resolving dns, but it's not icmp or dns port. it's port 80 which is web port.

    may be C2 games has google analytics in it? or something like that?

    i don't have any browser object in my game, actually it's a first tutorial by C2, i just tested it by exporting it, and it contact internet.

    it would be good if C2 team can throw some light on it.

  • hi, being inspired by the idea of game solar 2,

    and being upset about it's no progress and very few features, i am really hungry to make a game like that because i have so many things that i can put in it to make it playable for hours and not be bored. but as i am new in C2, i can't think of ways to implement that physics in C2.

    please forgive me if this is a wrong place to ask that, but i could figure this is the place.

    can anyone create a template / tutorial / or a guide to make a clone like solar 2 ?

    or may be someone could design one like that?

    thanks

  • why no replies ?

  • hi, i just exported my test project and my firewall told me the exported game is trying to connect to internet.

    why is that? i give no such instructions to game to connect to internet ???

    can anyone tell me why is it connecting and where? (if you want i can provide IP Addresses)

    and how can i stop it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi i am faysal from pakistan, i like to develop games with construct as a hobby and learning.

  • 9 posts