PDA

View Full Version : Varible adding problems >_<



Drexegar
September 13th, 2006, 01:44 PM
Hey guys how ya doing.

Im finishing up a game right now and Im having a simple problem which is getting me frustrated. Its with varibles.

When I put in this code:

_parent.scores = _parent.scores - 500;

I get -500; -1000; -1500;

But when I change the subtract to a plus sign I get:

_parent.scores = _parent.scores - 500;

I get 500; 500500; 500500500;

This code will add correctly on a button, But why when I do this on a onclip handler it does that but it subtracts correctly! >_<

I apoligize If this was solve already in a nother thread but I serached and cant find a solution. It would help me a lot.

Thanks for your time.

stickaforkinit
September 13th, 2006, 02:36 PM
check in the other forum...answered you there.

Drexegar
September 14th, 2006, 10:48 PM
Thanx I wanted to put it here cause I thought I posted in the wrong forum =^_^;=

Joppe
September 15th, 2006, 08:18 AM
you should really not post in two forums.

And an mod will move it if its wrong ;)