PDA

View Full Version : help(2 things aren't working and 1 q)! [MX]



SetroGamer
August 10th, 2003, 06:52 PM
I'm making a game and I've encountered some problems...I have tried putting PHP with flash, but it doesn't work! I put the
<? ?> things in, and then it says there is an error on the lines containing that...Plus, it doesn't give game overs...I have this:
----------
if (_root.you, hitTest(_root.mushroom)) {
gotoAndStop("Scene 2", 1);
}
-----------
And it doesn't work! Nothing happens...
---got resetting score to work, nevermind.--
I also have one question...How can I get it so it randomally decides if a new mushroom will pop up or something else(like, apples get you points. So maybe a different colored apple that gives you more points instead of the regular amount). Thankies if you can help. ^_^

Yeldarb
August 10th, 2003, 08:38 PM
onClipEvent(enterFrame) {
if(_root.you.hitTest(_root.mushroom)) {
gotoAndStop("Scene 2", 1);
}
}

blah-de-blah
August 11th, 2003, 03:37 AM
Isn't it _root.you, hitTest?

with the comma instead of the period?