As Int

Dom818

  • *
  • Posts: 1292
Here is a block that casts something to an integer (int).

I seemed to have a need for this block so I decided to make one and share it.

I think the round block does about the same as this block but this one is smaller and easier to use in my opinion.

Hectate

  • *
  • Posts: 4643
Thanks. I'm going to use this with the tile API since it's requiring Int as well and I don't feel like digging into the extension's code just yet.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Dom818

  • *
  • Posts: 1292
Thanks. I'm going to use this with the tile API since it's requiring Int as well and I don't feel like digging into the extension's code just yet.

That was one of the main purposes I made this. I use it for the TileAPI all the time.

jihem

  • *
  • Posts: 161
The "round" block does the same, isn't it ?
while (!success=retry());

Dom818

  • *
  • Posts: 1292
The "round" block does the same, isn't it ?

Yep, I think it does. I made this because it is smaller than the round block.