You are not logged in.
Announcement
#1 20/06/08 5:16am
- tenjimaru
- Moderator
- From: SD-CA
- Registered: 30/03/08
- Posts: 679
I Need Help with some Action Script (Flash mx 2004)
I added this to a frame, with the idea that when you reach this frame if your score is less than 1 you go to the game over scene, an if your score is higher than 2 you go to the next level, but it doesn't work.
anyone know why?
Action Script wrote:
if(_root.score < 1){
_root.gotoandplay("scene1", 1 );
} else {
if(_root.score > 2){
_root.gotoandplay("scene2", 1 );
}}
[i] Tenebra Crystallis.. Released!
Portable Fishing 2012 Released!
Find Them In The 'Flash Games' Section of The Forums[/i]
Offline
#2 20/06/08 2:45pm
Re: I Need Help with some Action Script (Flash mx 2004)
It's "Scene X"
[img]http://img134.imageshack.us/img134/9129/headerxt2.png[/img]
[url=http://zuriki.co.nr/project/traveller/][img]http://i28.tinypic.com/2vspafo.png[/img][/url]
[url=http://zuriki.co.nr]Zuriki - PSP Flash Games[/url]
Offline
#3 20/06/08 7:12pm
Re: I Need Help with some Action Script (Flash mx 2004)
Zuriki wrote:
rollinroll wrote:
omg u is teh noob u serusly sux
What has got into you?
He's been like that for a while. Maybe aliens came and they did something to him?
[url=http://profile.mygamercard.net/JaX3RiR][img]http://card.mygamercard.net/nxe/JaX3RiR.png[/img][/url]
Offline
#4 20/06/08 7:23pm
- rollinroll
- Moderator
- Registered: 23/10/06
- Posts: 1890
Re: I Need Help with some Action Script (Flash mx 2004)
WELLL WELLL WELLL ISN'T that mr JAXERERIR WELL WELL THAT BE COOL ME GUESS
CUZ LIKE YOU KNO LIKE SOMETIMES LIKE YOU KNOW LIKE maybe aliens is afraid of humans and like THAT WUD HAV BEN PRTTY AWSOM CUZ LIKE JAXERIR IS A HIPPIE
Offline
#5 20/06/08 7:34pm
Re: I Need Help with some Action Script (Flash mx 2004)
I think he has gone insane... I think maybe it would be safe to remove his moderator privileges, just incase.
[img]http://img134.imageshack.us/img134/9129/headerxt2.png[/img]
[url=http://zuriki.co.nr/project/traveller/][img]http://i28.tinypic.com/2vspafo.png[/img][/url]
[url=http://zuriki.co.nr]Zuriki - PSP Flash Games[/url]
Offline
#6 20/06/08 8:39pm
- rollinroll
- Moderator
- Registered: 23/10/06
- Posts: 1890
Re: I Need Help with some Action Script (Flash mx 2004)
Oh comon, i was just kidding
Offline
#7 20/06/08 9:08pm
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: I Need Help with some Action Script (Flash mx 2004)
lol. i was actually laughing.
Offline
#8 21/06/08 9:27am
Re: I Need Help with some Action Script (Flash mx 2004)
rollinroll wrote:
WELLL WELLL WELLL ISN'T that mr JAXERERIR WELL WELL THAT BE COOL ME GUESS
CUZ LIKE YOU KNO LIKE SOMETIMES LIKE YOU KNOW LIKE maybe aliens is afraid of humans and like THAT WUD HAV BEN PRTTY AWSOM CUZ LIKE JAXERIR IS A HIPPIE
Haha, that was funny.
[url=http://profile.mygamercard.net/JaX3RiR][img]http://card.mygamercard.net/nxe/JaX3RiR.png[/img][/url]
Offline
#9 22/06/08 5:22am
- nothing
- Moderator
- Registered: 21/03/08
- Posts: 389
Re: I Need Help with some Action Script (Flash mx 2004)
Haha, and On topic, I have no clue.
[url=http://pspflashgaming.com/forum/viewtopic.php?id=1078]BioShock[/url] PSP|fPS-Factor Released|[url=http://www.p22server.hostwq.net/index.html]p22 Center[/url]
I'm starting p22 again.
Offline
#10 22/06/08 6:36am
- tenjimaru
- Moderator
- From: SD-CA
- Registered: 30/03/08
- Posts: 679
Re: I Need Help with some Action Script (Flash mx 2004)
lol, ok thanks for those awsome replies
//back to the main topic//
ill have to use a different way to proceed in levels on my next game...
expected to be done by july
[i] Tenebra Crystallis.. Released!
Portable Fishing 2012 Released!
Find Them In The 'Flash Games' Section of The Forums[/i]
Offline
#11 22/06/08 6:56am
- crimsonhotsun
- Hardcore Member
- Registered: 30/03/08
- Posts: 96
Re: I Need Help with some Action Script (Flash mx 2004)
Uour code is leaving out the possibility of score being 1 or 2 because it is check numbers less than 1 (eg. 0.99999998) and greater then 2 (eg. 2.000000001) but nothing in between. I also noticed you have _root.gotoandplay instead of what it should be, _root.gotoAndPlay (notice the CAPS). An alternative to gotoAndPlay or Stop is using nextScene() and prevScene() to change the current scene.
[img]http://img101.imageshack.us/img101/9094/20707804nc6.png[/img]
My humble forums: [url=http://hologram.zxq.net/forums/]VirtualWorldForums[/url]
Offline