Magistross's Forum Posts

  • If the BuyValues is supposed to be 110% higher than the SellValues, shouldn't we see "Set MaterialBuyValue to int(Array.MaterialsSellValue*1.1)" ? The strange thing is that you got it right with ItemsBuyValue... <img src="smileys/smiley17.gif" border="0" align="middle" />

  • Take a look at the "ReplaceColor" effect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dino000

    Your problem comes from your "canSet" variable of your rabbit sprite. It is set to true on the start of the layout, so the global variable "number" get set immediately to "floor(random(1,maxCarrots))", even before the user select anything in the menu. Since "maxCarrots" has a default value of 10, you always get a random number between 1 and 10 !

  • For the "tossing around", have you tried using directional impulse ? The ship would still have a limited velocity though...

  • Can't you just set the velocity to the max_speed and let the physics behavior do the hard work for you ?

  • The easiest way for you to accomplish what you want would be to add conditions to your existing events to restrict the keypress to only one key, then to add 4 new events for combinations of keys with new movement angles (you might also want to change the movement amount to something lower/higher depending on the case).

  • The problem with that font is that the "1" doesn't take the same space compared to all the other digits. I wonder why it is not monospaced...

  • It's somehow the same problem mentionned in this topic. And the solution is the same !

    Add an instance variable to your MSFGuy. In a "For each", increment the new instance variable by the time delta (the variable "dt" under system->time). Once it reaches 1, set it to 0 and make your MSFGuy shoot.

  • I just noticed my "plugin" was being used by some of you guys, so I decided to reupload a working version.

    While at it I decided to add the possibility to use the "set" method to insert data at a non-existing index, by effectively expanding the dataStructure. Empty strings will fill the missing indexes. If the dataStructure is not initialized, it will be created first too.

  • It might be a good idea to not use built-in collision at all and rely on an array representation of the grid to create your own collision detection.

  • There you go !

    I cooked this up in a hurry. Most of the functionnalities can be tested. It's all pretty basic, but might seem a bit hard to grasp if you're new to all this popping and shifting.

    Note that you need to add data with push or unshift before you can do anything. (Inserting at index 0 in an empty data structure won't cut it)

  • I don't know if the Construct 2 web server's configuration allow foreign connections. You COULD however build your own local server and host your C2 creations, and then test them with whatever compatible device.

  • Glad to hear that ! <img src="smileys/smiley20.gif" border="0" align="middle" />

  • What "recently" changed in the SDK ? Recently being between r55 and the current one.

  • One thing that could worth adding to this A* implementation is "teleporters". Special walkable tiles from which a path to other non-adjacent tiles can be found. Especially useful in creating wraps and warps alike !