View Full Version : [MX] My problem is still there! x.x
SetroGamer
August 19th, 2003, 05:53 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 just put this:
<?
and it'll say "unexpected '<' on line 1"...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! And yes, it IS is a clip event!
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. ^_^
pom
August 19th, 2003, 07:03 PM
The PHP code is for the PHP page. You can only input AS in the AS panel :)
Eric Jr.
August 19th, 2003, 08:10 PM
if (_root.you, hitTest(_root.mushroom)) {
gotoAndStop("Scene 2", 1);
}
Is not possibe either, first of all, if() only requires one parameter :)
and hitTest() needs more.
I think it should be this:
if (_root.you.hitTest(_root.mushroom)) {
gotoAndStop("Scene 2", 1);
}
SetroGamer
August 19th, 2003, 08:49 PM
It still doesn't give you a game over....
As for the PHP-
I tried putting in the as because it didn't work if I included a PHP page...And having it go to a PHP page is bad because then they can cheat and change their score.(I'm doing a send score that I need to include the PHP in it)
Eric Jr.
August 19th, 2003, 08:55 PM
Well I don't know about that, because instead of continuing the topic this is about, you started a new one causing me not to understand one thing of your 'game'
SetroGamer
August 19th, 2003, 09:04 PM
my restart just stopped working....I didn't continue it because I posted it a long while ago and no one was reading it anymore..I'm making the game for my pet site...You play as one of the pets and you eat the apples to get points but if you eat a mushroom you're supposed to get a game over. If I could get any PHP to work with it, I'd do that part myself. But the rest has stopped working. :( This is the first game I've ever made with flash that's actually getting somewhere...I attached it so you could see it for yourself and get an idea of what I'm trying to do.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.