heater19's Forum Posts

  • thank you

  • Hi, wanted to try the mSaveLoad + mFlashyMenu: Typeable Save/Load Menu tutorial, but it needs the charCode plugin, and the link is broken.

    I think this plugin was made by Kyatric, but I'm not sure.

    Anybody have an updated link to get the charCode.zip plugin?

    Thanks

  • thanks, i was thinking about this and decided to go for a walk and came up with the following:

    frame = ceil(x/20)

    but your way works too!

  • I have a sprite with 5 animation frames, each a different color;

    What i would like to do is select the a frame (from 0 to 4), based on a value from 0 to 100;

    so, if the value is 0-20, choose frame 0;

    if the value is 21-40, choose frame 1, and so on all the way up to 81-100;

    It feels that I should be using a statement with 'clamp' and modulus%20 to select the frame, but i can't figure out how;

    BTW, I know I can choose multiple if/else statements, but I think it can be done more efficiently;

    thanks;

  • did you check out Rex's addons,

    c2rexplugins.weebly.com/rex_board_hexshapemap.html

  • I realize this is an old post, but i just ran into this problem;

    are families supported in containers?

  • thanks for the reply,

    unfortunately, using the min() method only gets you the value of the lowest instance variable;

    i guess i should have been more clear, i'm more interested in knowing which variable is the one with the lowest value;

    aside from using an array, i could do 4 actions iterated by an else statement, something like the following:

    if forward < min(player.forward, player.right, player.back, player.left)

    do this;

    else right < min(player.forward, player.right, player.back, player.left)

    do this;

    else back < min(player.forward, player.right, player.back, player.left)

    do this;

    else left < min(player.forward, player.right, player.back, player.left)

    do this

  • i have a sprite representing the player, it has four instance variables...

    forward, right, back, left;

    each of the above variables has a certain amount of HP value associated with;

    What i'm trying to do is have the AI pick the instance variable based on the HP value, i.e.

    if AI_sprite within some range of PC_sprite

    evaluate the four instance variables

    and pick the one with the lowest value

    then move AI_sprite to the position represented by

    the Instance variable

    I can do it if i have a separate 4x4 array with HP value on the X axis and the positions on the Y axis, then sort by HP value, however, i have a feeling there should be a simpler way of evaluating instance variables associated with a single object.

    Thanks

  • same thing happened to me, it was after I had changed to a multi-monitor setup;

    after i maximized the window, it would appear as a thin line a the top of the screen, if i double clicked on it, then it would properly maximize to the monitor screen;

    i just leave it like that now, and try not to mess with it, otherwise it shrinks back;

    BTW, i'm on Win 7 Pro edition

  • the main question is in regards to how such a game would be setup and run on a dedicated server. I've read the intro tutorials on the multiplayer plugins and played around with the samples provided (chat room, pong).

    1) I'm thinking that there would be an instance of the game that's constantly running on the server.

    2) When a player goes to the website hosting the game, the first screen they see is the login. After entering their name, choosing their skin, etc...

    3) they get sent to the main layout of the game, which would have other players already in it (hopefully) doing their thing.

    In a peer to peer setup, which to my understanding is how the Construct 2 multiplayer plugin works, once the game starts new players are not able to join that particular instance of the game since it's disconnected from the signalling server, which is required to tell the host peer who exactly is connected.

    Is my understanding of the multiplayer flow correct?

    Is the dedicated server running the game constantly considered the host peer?

  • thanks for the reply, i appreciate it;

    eventually there may will be dozens of types of weapons to choose from, that's why i was thinking of a family construct to make the picking easier

  • I've got a Family called fml_weapons with 4 sprites

    the Family has a variable called 'name' and i set each sprite in the family with a unique name ('missile', 'red laser', 'green laser', 'blue laser')

    what i would like to do is set the 'Z' key to fire the red laser, so i set up the code this way:

    System --> Pick fml_weapons where fml_weapons.name="red laser"-->Spawn fml_weapons sprite

    however, the result is a random sprite from the fml_weapons Family gets spawned

    I know i could just spawn the red laser sprite on 'Z' key pressed, but this key won't always lead to the same weapon, eventually, the player will setup his weapons from an array

    thanks

  • i realize this topic is a bit old, but i'm looking to download the bundled theme that was offered previously;

    anybody know if they are still available?

  • Hi, if i create random data from a site like mockaroo.com, is there a way to import it into a table that your tool creates?

    the site can export data in various formats including .xml, JSON, SQL, CSV, etc.

    thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://www.scirra.com/arcade/strategy- ... atrol-6290

    another update with bug fixes and game balance issues