00:00
00:00
Newgrounds Background Image Theme

Chan99 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Subtracting number (AS2)

1,264 Views | 7 Replies
New Topic Respond to this Topic

when i put this frame action

timer.text -= 1;

and when i have this MC action

onClipEvent(load){
_root.cam.timer.timer.text = 90;
}

It turns the 90 into a -1 instead of subtracting. Help?

Response to Subtracting number (AS2) 2017-09-27 17:13:32


You're taking away a number from a string.
Make a variable first. Use that as your number.
Do the calculations with that then set the textbox.text to the variable.

Response to Subtracting number (AS2) 2017-09-27 18:14:28


At 9/27/17 05:13 PM, Aprime wrote: You're taking away a number from a string.
Make a variable first. Use that as your number.
Do the calculations with that then set the textbox.text to the variable.

nvm i got it now

Response to Subtracting number (AS2) 2017-11-06 09:44:38


At 9/27/17 06:14 PM, bb-panzu wrote: nvm i got it now

So was his suggestion helpful? Or at least correct? Your response seems rude tbh.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Subtracting number (AS2) 2017-11-06 20:50:04 (edited 2017-11-06 20:51:03)


At 11/6/17 09:44 AM, sharpnova wrote:
At 9/27/17 06:14 PM, bb-panzu wrote: nvm i got it now
So was his suggestion helpful? Or at least correct? Your response seems rude tbh.

sorry if it sounded rude. I just found the solution before he replied. His answer is correct btw

Response to Subtracting number (AS2) 2017-11-06 20:53:00


At 11/6/17 08:50 PM, bb-panzu wrote:
At 11/6/17 09:44 AM, sharpnova wrote:
At 9/27/17 06:14 PM, bb-panzu wrote: nvm i got it now
So was his suggestion helpful? Or at least correct? Your response seems rude tbh.
sorry if it sounded rude. I just found the solution before he replied. His answer is correct btw

Btw if I can offer some advice, port your assets over to construct or something. You really shouldn't do flash development anymore.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))

Response to Subtracting number (AS2) 2017-11-06 20:55:19


At 11/6/17 08:53 PM, sharpnova wrote:
At 11/6/17 08:50 PM, bb-panzu wrote:
At 11/6/17 09:44 AM, sharpnova wrote:
At 9/27/17 06:14 PM, bb-panzu wrote: nvm i got it now
So was his suggestion helpful? Or at least correct? Your response seems rude tbh.
sorry if it sounded rude. I just found the solution before he replied. His answer is correct btw
Btw if I can offer some advice, port your assets over to construct or something. You really shouldn't do flash development anymore.

Yeah. I'm aware of flash's death in 2020. I am planning on moving to Construct 2, but right now im just making the most what what i have left

Response to Subtracting number (AS2) 2017-11-06 23:48:50


At 11/6/17 08:55 PM, bb-panzu wrote:
Yeah. I'm aware of flash's death in 2020. I am planning on moving to Construct 2, but right now im just making the most what what i have left

Flash has been dead for a long time.

Btw Construct is up to version 3 now. It's a fantastic tool. Though I still recommend that serious game developers spend time with Javascript and its associated libraries and frameworks. And all the major CSS frameworks too. And C# development. Windows applications with C# will teach you a lot.


∀x (∃e (e ∈ x ∧ ∀x ¬(x ∈ e)) ∨ ∃y ¬∃e (e ∈ x ∧ ¬∃z (z ∈ y ∧ z ∈ e ∧ ∀x ¬((x ∈ y ∧ x ∈ e) ∧ ¬(x = z)))))