Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Exportforce

Pages: 1 ... 3 4 5 6
Suggestion Archives / Switch round to fround!
« on: July 15, 2015, 12:10:51 pm »

please switch the round function to a fround, as round converts the number to an integer which is bad for games with large numbers.

Also please add a function, to morph large numbers to scientific notations.


Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 11:31:58 am »
I found a way. I used a manual codeblock with "Math.fround(_VARIABLE)" that works very well :)

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 10:47:52 am »
Numbers in Stencyl are Float, not Int, but there are blocks (like the round block) that will convert Float to Int.
Ah okay, that is definitly an info that should be in the editor, didn't even know that. All I got (from other sources) that stencyl only uses INT.  Okay, then I will takeout all round functions and try to find another way for that. BIG THANKS!

edit: But how can I trim those large lengths after the comma ? Often I get something like 12.1999999999999999999999999 and that is a bit weird. As I can't round anymore, how should I get rid of that or at least shorten it to 12.19 ?

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 10:33:58 am »
Yes, so you should never convert to int anywhere in your game.  Going from float to string (text) should not cause a loss in precision, so you must be converting to int somewhere.
We do not have the power to choose a format... at least not that I know of... I can only choose "Number" as an attribute format and that is initially an integer, I would not know how I could change that.

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 10:10:20 am »
Just tried around a bit and couldn't find any way to work with text as number...
But if it is only int and I go higher than INT works, the number is already "destroyed" as it is higher than INT allows.

edit: I tried to show the number inside a "anything as text" but as thought, the number still breaks and gets into negative

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 09:23:54 am »
So if I use TEXT and have numbers as large as like 100  numbers, Stencyl can work (math) with them without  problems ?

Ask a Question / Re: [Question] Numberformatting
« on: July 15, 2015, 03:00:19 am »

sorry for doubleposting, but I am really desperately looking for a way to format numbers and allow big numbers.
Would appreciate help :)

Ask a Question / Re: Passing days in a game
« on: July 14, 2015, 10:38:26 am »
distance unit * fuel and then deduct it if player has the amount or more. Same with the attribute/variable "day"

Ask a Question / Re: [Question] Numberformatting
« on: July 14, 2015, 04:54:19 am »
Well, that would be serious work... also very inaccurate...
I would need to recalculate that every second on all stuff that uses any form of currency...

Ask a Question / Re: [Question] Numberformatting
« on: July 13, 2015, 11:26:40 pm »

I run into a serious problem.
As the numbers getting higher in my game, they suddenly go into negatives.
This seems to be, because Stencyl uses a too small numberholder (integer?).
Is there a way to use real huge numbers like and more ?

Ask a Question / Re: [Question] Save Game
« on: July 13, 2015, 03:49:50 pm »
Sent you a PM.
I'm quite happy how it turned out. Just a shame I am not good with graphics.
I already know my next steps and hope they will work out :)

Ask a Question / Re: [Question] Save Game
« on: July 13, 2015, 02:43:45 pm »
Yeah I have just seen that. I don't even know where I got those... well... but practically it should be the same, no ?

But no matter. It WORKS! Saving and Loading like a charm!
Tomorrow I'll try myself on an overlay window with some little achievements.

(And I need some little math tricks to get some helpful algorythms running ^^ but that is on a way different level)

Ask a Question / Re: [Question] Save Game
« on: July 13, 2015, 02:25:28 pm »
I don't want to save the Game Attributes to Attributes, I want the Attributes saved in the Game Attributes and that would be this way. Because I can't use the Game Attributes everywhere I need to create them specifically and I thought the best time to do that is directly before I save, so they are super actual.

Or I misunderstood you...

Ask a Question / [Question] Save Game
« on: July 13, 2015, 02:03:52 pm »

except the Numberformatting my game works very well, so I wanted to add save and loading.
So I created a copy of all variables I need to save as a game attribute and went this way to save them every few seconds:

But the values stay empty, eventhough the variables are being saved, but they stay at their standard value and this setting seems to be fully ignored.

Ask a Question / Re: Monitoring progress
« on: July 13, 2015, 09:56:37 am »
Store the X/Y positions of everyone in a 3 dimensional variable, should do the trick.
Save them, and when the player comes back, load them.

Pages: 1 ... 3 4 5 6