Be a Supporter!

guitar hero game attempt

  • 402 Views
  • 13 Replies
New Topic Respond to this Topic
jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
guitar hero game attempt 2008-12-03 18:44:27 Reply

well basically what i have is a movie clip with this code on it

onClipEvent (enterFrame) {
if (this.hitTest(_root.bar)) {
_root.note.gotoAndPlay(2);
}
}

and on the second frame of the movie clip i have this

if (Key.isDown(Key.UP)) {
_root.note.gotoAndPlay(3);
} else {
_root.note.gotoAndPlay(2);
}

and the 3rd is a blank frame

the problem is whenever the note collides with the bar it goes to the second frame, witch is red, and then disappears a couple seconds later with out you haveing to press anything

whats wrong with the code

btw
stop();
is on all 3 of the frames within the not MC


Snipers get more head

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:12:48 Reply

any one know where i can upload the fla.


Snipers get more head

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:19:44 Reply

come on peopl wouldn't you love a fun game to play?


Snipers get more head

Superuberman69
Superuberman69
  • Member since: Sep. 23, 2007
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:29:10 Reply

Try uploading Here

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:42:59 Reply

http://spamtheweb.com/ul/upload/031208/7 0941_gh_game.fla

here's the file so u can see what i mean, i really need help people, please?


Snipers get more head

CaiWengi
CaiWengi
  • Member since: Sep. 17, 2004
  • Offline.
Forum Stats
Member
Level 07
Programmer
Response to guitar hero game attempt 2008-12-03 19:44:25 Reply

Your far too vague. Is that your exact code? Do you have no other code?

No i cant be bothered downloading your fla. Post enough info here and we wont have to.


BBS Signature
TheoGames
TheoGames
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:44:28 Reply

Lol I made a guitar hero game but I used arrays.

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:57:44 Reply

At 12/3/08 07:44 PM, TheoGames wrote: Lol I made a guitar hero game but I used arrays.
http://www.newgrounds.com/portal/view/45 9825

arrays? it seems ive bit off more than i can chew

ill have to get better at AS i guess


Snipers get more head

TheoGames
TheoGames
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to guitar hero game attempt 2008-12-03 19:58:49 Reply

Yeah, i just set up numbers that spawned arrows. 1-4 and 1 is up and 2 is side and ect

uyersuyer
uyersuyer
  • Member since: May. 15, 2002
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to guitar hero game attempt 2008-12-03 20:13:47 Reply

onClipEvent (enterFrame) {
if (this.hitTest(_root.bar)) {
_root.note.gotoAndStop(2);
}
}

You need gotoAndStop(), not gotoAndPlay. Change it in the other sections too.


"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe

BBS Signature
Tehpivot
Tehpivot
  • Member since: Nov. 11, 2007
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to guitar hero game attempt 2008-12-03 20:16:33 Reply

At 12/3/08 08:13 PM, uyersuyer wrote: onClipEvent (enterFrame) {
if (this.hitTest(_root.bar)) {
_root.note.gotoAndStop(2);
}
}

You need gotoAndStop(), not gotoAndPlay. Change it in the other sections too.

what the--- how in heck did you get that gradient???


"Spend all night with him, youll wind up with a sore ass. Spend all night with me and youll wind up with a smart ass - Jedi's Groucho Ma impression"

BBS Signature
jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 20:16:37 Reply

that wont matter becuase i ahve stop frames on all of it


Snipers get more head

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-03 20:18:58 Reply

how do you use arrays?
what are they?
will it make it any easier?
I've never touched the subject...well not intentionally


Snipers get more head

jds74
jds74
  • Member since: Mar. 21, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to guitar hero game attempt 2008-12-07 01:20:40 Reply

HELP PEOPLE!!!!!


Snipers get more head