Be a Supporter!

i need help with actionscripting

  • 410 Views
  • 11 Replies
New Topic Respond to this Topic
clarkitupp
clarkitupp
  • Member since: Apr. 6, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
i need help with actionscripting 2008-05-13 19:34:41 Reply

k so like i made a game right? and at the end of the level i wanna put sumthin thatll be like
if (_root.hero.hitTest(_x, _y, true)) {
gotoandplay(3);
}
so when the pall touchs the end of the maze itll go to my frame of choicethus beatin the level i need a script or else my game cant continue being made
help help help me me me


i can voice act =3

BBS Signature
ChilliDog
ChilliDog
  • Member since: Feb. 16, 2007
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to i need help with actionscripting 2008-05-13 20:33:40 Reply

AS: Main

It'll be your best friend. Go there before making a new thread next time.


AS: Main

Don't read this sentence.

AIDSMcGuff
AIDSMcGuff
  • Member since: Feb. 26, 2006
  • Offline.
Forum Stats
Member
Level 33
Game Developer
Response to i need help with actionscripting 2008-05-13 21:30:43 Reply

At 5/13/08 07:34 PM, clarkitupp wrote: k so like i made a game right? and at the end of the level i wanna put sumthin thatll be like
if (_root.hero.hitTest(_x, _y, true)) {
gotoandplay(3);
}
so when the pall touchs the end of the maze itll go to my frame of choicethus beatin the level i need a script or else my game cant continue being made
help help help me me me

Use proper grammar and spelling (At least spelling). I can't understand what you are asking (Otherwise I would help).


01000100011000010110111001100011011 01001011011100110011101010000011010 01011011100110010101100001011100000 11100000110110001100101010001110111 010101111001

BBS Signature
Treerung
Treerung
  • Member since: Apr. 18, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to i need help with actionscripting 2008-05-13 21:42:13 Reply

if (_root.hero.hitTest(_x, _y, true)) {
_parent.gotoandplay(3);
}

Try that.


:'(

BBS Signature
Hamalo
Hamalo
  • Member since: Apr. 18, 2007
  • Offline.
Forum Stats
Member
Level 23
Melancholy
Response to i need help with actionscripting 2008-05-13 22:41:17 Reply

At 5/13/08 09:42 PM, Treerung wrote: if (_root.hero.hitTest(_x, _y, true)) {
_parent.gotoandplay(3);
}

Try that.

gotoandplay has to be changed to gotoAndPlay

Its case sensitive


BBS Signature
clarkitupp
clarkitupp
  • Member since: Apr. 6, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to i need help with actionscripting 2008-05-14 18:59:16 Reply

At 5/13/08 09:30 PM, salted-tator-tot wrote:
At 5/13/08 07:34 PM, clarkitupp wrote: k so like i made a game right? and at the end of the level i wanna put sumthin thatll be like
if (_root.hero.hitTest(_x, _y, true)) {
gotoandplay(3);
}
so when the pall touchs the end of the maze itll go to my frame of choicethus beatin the level i need a script or else my game cant continue being made
help help help me me me
Use proper grammar and spelling (At least spelling). I can't understand what you are asking (Otherwise I would help).

hey man dont be such a spelling cop i wrote this in like 2 seconds cuause i was searching a buncha sites at the same time for the script


i can voice act =3

BBS Signature
AIDSMcGuff
AIDSMcGuff
  • Member since: Feb. 26, 2006
  • Offline.
Forum Stats
Member
Level 33
Game Developer
Response to i need help with actionscripting 2008-05-14 20:09:42 Reply

At 5/14/08 06:59 PM, clarkitupp wrote:
At 5/13/08 09:30 PM, salted-tator-tot wrote:
At 5/13/08 07:34 PM, clarkitupp wrote: k so like i made a game right? and at the end of the level i wanna put sumthin thatll be like
if (_root.hero.hitTest(_x, _y, true)) {
gotoandplay(3);
}
so when the pall touchs the end of the maze itll go to my frame of choicethus beatin the level i need a script or else my game cant continue being made
help help help me me me
Use proper grammar and spelling (At least spelling). I can't understand what you are asking (Otherwise I would help).
hey man dont be such a spelling cop i wrote this in like 2 seconds cuause i was searching a buncha sites at the same time for the script

Your whole point is to get help, you need people to be able to understand you to get that help. A few spelling errors are ok, but you have to at least be able to understand what is being asked. You aren't committed to having to keep the same writing which you started with, you have a delete key for a reason.


01000100011000010110111001100011011 01001011011100110011101010000011010 01011011100110010101100001011100000 11100000110110001100101010001110111 010101111001

BBS Signature
dragonjet
dragonjet
  • Member since: Dec. 2, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to i need help with actionscripting 2008-05-14 21:11:16 Reply

here we go

onClipEvent (enterFrame){
     if (_root.hero.hitTest(_x, _y, true)) {
          gotoandplay(3);
     }
}
dragonjet
dragonjet
  • Member since: Dec. 2, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to i need help with actionscripting 2008-05-14 21:12:46 Reply

damn, I didn't see that! gotoandplay must be gotoAndPlay!

onClipEvent (enterFrame){
     if (_root.hero.hitTest(_x, _y, true)) {
          gotoAndPlay(3);
     }
}

sorry for double post

clarkitupp
clarkitupp
  • Member since: Apr. 6, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to i need help with actionscripting 2008-05-26 17:11:00 Reply

At 5/14/08 09:12 PM, dragonjet wrote: damn, I didn't see that! gotoandplay must be gotoAndPlay!

onClipEvent (enterFrame){
if (_root.hero.hitTest(_x, _y, true)) {
gotoAndPlay(3);
}
}

sorry for double post

hmmm... didnt work... the ball just goes under it


i can voice act =3

BBS Signature
clarkitupp
clarkitupp
  • Member since: Apr. 6, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to i need help with actionscripting 2008-05-26 17:13:16 Reply


Your whole point is to get help, you need people to be able to understand you to get that help. A few spelling errors are ok, but you have to at least be able to understand what is being asked. You aren't committed to having to keep the same writing which you started with, you have a delete key for a reason.

sayin dat mah spellinz r rong ait help'n meh sooo... why not try to help me fix this problem eh? its like... 2 weeks old probably.


i can voice act =3

BBS Signature
tgw1996
tgw1996
  • Member since: Dec. 15, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to i need help with actionscripting 2008-05-26 17:52:32 Reply

Try this
oh i cant do the script thingy on the html but try this

onClipEvent(enterFrame){
if(this.hitTest(_root.hero)){
_root.gotoAndStop(3);
}
}

It works for me and my Flash 8 AS2