im currently creating a game which involves getting a coin( cant get the score to rise above 1) and the coin vanishes off screen so plz correct this code(as2): if (_root.coin.hitTest(hero_collect)) { _root.coin._x = Math.random()*500+50; _root.coin._y = Math.random()*500+50; ++_root.scorenumber; _root.score = "Score: " + _root.scorenumber; } SUPER THANKS!!!
sorry it will still disappear from screen sometimes unless you subtract coins width from 400. and height from 500... and that border you have around might also hide it
Still trying to figure out the score problem but I just noticed that and I decided to put it in... The score is a bit confusing I dont see why its not working. and yes the game is really cool It is going to be an awesome game to have on the site =D