gumshoe2029's Recent Forum Activity

  • Can you link a relevant Youtube video? I've never played this game.

  • You need to first look up the API for each social media outlet that you want to use, then create your AJAX to submit whatever data you want to submit to them. Then you create a nice image (or borrow one) and create click events for each one.

    Like Facebook's API:

    https://developers.facebook.com/docs/public_feed

  • You have a player id?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So your angle range is centered on 270? So you just take the current random angle, subtract 270 and subtract that value from 270 to get the mirror angle.

    That will mirror your object around 270.

  • Now I understand. Thanks for making it very clear. I didn't know the indexes start at zero so I had a great confusion about how it works.

    Thanks again!

    Yea, that is a computer science thing. We (almost) always start at 0. Don't ask me why...

  • Did you try using a linear equation? You keep bumping this without actually trying to solve it yourself, it seems.

  • Well, I'll give you an example of how it works using rex's Hash plugin, since that is what we use to parse JSON.

    Suppose we have the JSON object:

    {"group1":{"object1":122,"object2":42,"object3":[98,47,12,9]},"group2":{"object4":[238,987,823,487],"object5":"this is a string","object6":true}}

    Then you import it into the hash object (which would be similar to loading it for a CSV object), and this parses the JSON into a JavaScript object. From there you call specific methods to access the data via a schema, like:

    Hash.At("group1.object3.3")

    This call would return: 9 (the indexes for arrays start at 0)

    also, you can call:

    Hash.At("group2.object5")

    which will return: this is a string

    You can also call bulk objects like:

    Hash.At("group1")

    which will return: {"object1":122,"object2":42,"object3":[98,47,12,9]}

    If I had to guess at how the API for the CSV plugin is configured, you would have a row number and a column number for identifying specific data points, like:

    2,45,34,66,32

    98,45,32,75,23

    4,5,23,556,323

    So you would have like:

    CSV.At(2,4) which would return 323 (assuming all indices start at 0)

  • Probably. I am not sure how though, as I have never worked with the SmartFox stuff.

  • I've never used the plugin from rex that you are using. What exactly are you trying to do with it? Just access the data?

  • Very nice Share your solution, so others can follow.

  • SquareTx plugin only can get position along grids, it is not enough for RTS game.

    I guess I misunderstand the scope then. We are building an RTS game, and your squareTx in iso mode works fabulously for us.

  • You use both. The WebSocket object in C2 is the client side, and the SmartFox object is the server side.

gumshoe2029's avatar

gumshoe2029

Member since 4 Mar, 2014

None one is following gumshoe2029 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies