Be a Supporter!

ok i need new help

  • 323 Views
  • 20 Replies
New Topic Respond to this Topic
Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
ok i need new help 2006-03-04 03:44:11 Reply

how come the box at the end of the level doesn't work when the charector goes over it

ok i need new help


<3

BBS Signature
Vengeance
Vengeance
  • Member since: Mar. 18, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to ok i need new help 2006-03-04 03:45:36 Reply

what's the code you have on it?


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature
Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 03:47:00 Reply

_root.onEnterFrame=function(){
if(_root.character.hitTest(_root.levelEnd)
){
_root.nextFrame();
onEnterFrame=null
}
}


<3

BBS Signature
Vengeance
Vengeance
  • Member since: Mar. 18, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to ok i need new help 2006-03-04 03:47:58 Reply

have you got the right instance names?


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature
Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 03:50:12 Reply

yes charecter (but spelled right) and levelEnd


<3

BBS Signature
Vengeance
Vengeance
  • Member since: Mar. 18, 2005
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to ok i need new help 2006-03-04 03:51:40 Reply

if(_root.character.hitTest(_root.levelEnd)
){
make that into one line, newgrounds automatically shorten's it.


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ok i need new help 2006-03-04 03:52:16 Reply

Do any errors appear in the output window?

Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 03:56:31 Reply

yes


<3

BBS Signature
Longover
Longover
  • Member since: Feb. 19, 2003
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to ok i need new help 2006-03-04 03:58:19 Reply

At 3/4/06 03:51 AM, -Vengeance- wrote: if(_root.character.hitTest(_root.levelEnd)
){
make that into one line, newgrounds automatically shorten's it.

Flash doens't read whitespace though(right...) If you want to solve your own problems, throw a "trace("");" into the middle of that funtion

Longover
Longover
  • Member since: Feb. 19, 2003
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to ok i need new help 2006-03-04 03:59:33 Reply

At 3/4/06 03:56 AM, kevinvvfry wrote: yes

post the errors....

Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 12:37:43 Reply

sorry i fell asleep on the keybored earlier but it still doesn't work


<3

BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ok i need new help 2006-03-04 12:41:15 Reply

At 3/4/06 12:37 PM, kevinvvfry wrote: sorry i fell asleep on the keybored earlier but it still doesn't work

What did the errors say?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to ok i need new help 2006-03-04 12:42:20 Reply

At 3/4/06 12:37 PM, kevinvvfry wrote: sorry i fell asleep on the keybored earlier but it still doesn't work

nextFrame(); doesn't always work if theres a stop(); command I find. Try using _root.gotoAndPlay(#); instead.

#=frame number.

The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 12:44:20 Reply

**Error** Scene=Scene 1, layer=level, frame=5:Line 2: Unexpected '}' encountered
if(_root.character.hitTest(_root.levelEnd)
)}

Total ActionScript Errors: 1 Reported Errors: 1


<3

BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ok i need new help 2006-03-04 12:47:22 Reply

At 3/4/06 12:44 PM, kevinvvfry wrote: **Error** Scene=Scene 1, layer=level, frame=5:Line 2: Unexpected '}' encountered
if(_root.character.hitTest(_root.levelEnd)
)}

Total ActionScript Errors: 1 Reported Errors: 1

Put
if (_root.character.hitTest(_root.levelEnd))}
on one line.

Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 12:49:38 Reply

log onto aim itll be eiser we can talk like that


<3

BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ok i need new help 2006-03-04 12:54:24 Reply

At 3/4/06 12:49 PM, kevinvvfry wrote: log onto aim itll be eiser we can talk like that

I don't have aim.

Senri
Senri
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to ok i need new help 2006-03-04 12:55:15 Reply

At 3/4/06 12:54 PM, Cybex wrote:
At 3/4/06 12:49 PM, kevinvvfry wrote: log onto aim itll be eiser we can talk like that
I don't have aim.

oh well then it still doesntwork im so confused


<3

BBS Signature
Darkaxl
Darkaxl
  • Member since: Oct. 23, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to ok i need new help 2006-03-04 12:57:50 Reply

At 3/4/06 12:54 PM, Cybex wrote: I don't have aim.

Sure ya dont -_O ,!,


BBS Signature
Cybex
Cybex
  • Member since: Mar. 4, 2005
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ok i need new help 2006-03-04 13:08:01 Reply

At 3/4/06 12:55 PM, kevinvvfry wrote:
At 3/4/06 12:54 PM, Cybex wrote:
At 3/4/06 12:49 PM, kevinvvfry wrote: log onto aim itll be eiser we can talk like that
I don't have aim.
oh well then it still doesntwork im so confused

What error message comes up now?

KaynSlamdyke
KaynSlamdyke
  • Member since: Jun. 25, 2004
  • Offline.
Forum Stats
Member
Level 16
Melancholy
Response to ok i need new help 2006-03-04 14:21:02 Reply

_root doesn't accept onEnterFrame() commands, surely?

Might be a step in the right direction for other people to sort out. I'm none to sure how to handle hittests

...

BBS Signature