Maths: Split

Get help using Construct 2

Post » Fri Oct 07, 2011 7:35 am

Sadly I am in the office and can't create a capx by now .. so I will just type my thoughts =)

I am not even nearly as good as lucid, but I would try to solve the problem more like this:

Crating 9 sprites with 10 animation-frames (digits 0-9) and giving them variables, so if you score 2341 points, you will change the first 4 digits by 2, 3, 4 and 1 .. than a little calculation (if var > 10: set var-10 and add 1 to var2) and so on you will have a possibility to have a score as big as you want.

Or am I talking useless garbage? =/
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Fri Oct 07, 2011 8:43 am

Definitely not useless garbage, Spade, that's a great idea -- and almost exactly what Yann put into his capx already. Thanks a ton to both of you, seems like I won't have to wait for an official fix after all!

And yes, Yann, I'm very appy.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Oct 07, 2011 10:40 am

Hehe, than I am appy too
B
17
S
4
G
4
Posts: 94
Reputation: 3,058

Post » Fri Oct 07, 2011 1:28 pm

[QUOTE=lucid] http://dl.dropbox.com/u/1013446/moneytext.capx
let me know if you need me to deconstruct it[/QUOTE]

Thanks, Nicely done! :D

Didn't expect another 11 replies lol :S
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Fri Oct 07, 2011 3:27 pm

Yeahhh... Sorry for hijacking your topic, dcrew.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Oct 07, 2011 7:34 pm

With regard to the number size issue. If you set a variable with an action you can use 15 digit numbers with no rounding.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Fri Oct 07, 2011 7:50 pm

[QUOTE=R0J0hound] With regard to the number size issue. If you set a variable with an action you can use 15 digit numbers with no rounding.[/QUOTE]
hmmm
sounds like a bug really
not being able to initialize to the same accuracy wouldn't be the expected behavior
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 21 guests