To make a work button first make the button itself, and remember make sure
the buttons a button not a movie clip.
Add this action script to the button
on (release) {
if (_root.Energy > 24)
{_root.Energy -=25 ;
}
if (_root.Energy > 24)
{_root.Cash +=25 ;
}
}
The code basicly means if energy is 25 or above then take away 25 energy and add 25 cash.
Sunday, 1 February 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment