# \[MX\] My problem is still there! x.x

**URL:** <https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892>\
**Category:** flash\
**Created:** [August 19, 2003, 9:53pm UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892 "2003-08-19T21:53:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SetroGamer](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@SetroGamer](https://forum.kirupa.com/u/SetroGamer)\
**Post date:** [August 19, 2003, 9:53pm UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/1 "2003-08-19T21:53:12Z")

</div>

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:

```php
<?

```

and it’ll say “unexpected ‘\<’ on line 1”…Plus, it doesn’t give game overs…I have this:  
[AS]  
if (\_root.you, hitTest(_root.mushroom)) {  
gotoAndStop(“Scene 2”, 1);  
}  
[/AS]  
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. ^_^

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 19, 2003, 11:03pm UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/2 "2003-08-19T23:03:47Z")

</div>

The PHP code is for the PHP page. You can only input AS in the AS panel 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2003, 12:10am UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/3 "2003-08-20T00:10:48Z")

</div>

```auto

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:

```auto

if (_root.you.hitTest(_root.mushroom)) {
        gotoAndStop("Scene 2", 1);
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2003, 12:49am UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/4 "2003-08-20T00:49:38Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2003, 12:55am UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/5 "2003-08-20T00:55:33Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2003, 1:04am UTC](https://forum.kirupa.com/t/mx-my-problem-is-still-there-x-x/28892/6 "2003-08-20T01:04:19Z")

</div>

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.
