USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 3/4/06 03:44 AM
Sign-Up: 10/15/05
Posts: 4,463
how come the box at the end of the level doesn't work when the charector goes over it
Why so much hatred? You've got to live in this world with me. Why so much hatred? Everyday I wake up in the same country I take a look around and I see no unity. NG Ska Crew
Posted at: 3/4/06 03:45 AM
Sign-Up: 03/18/05
Posts: 5,049
what's the code you have on it?
========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========
Posted at: 3/4/06 03:47 AM
_root.onEnterFrame=function(){ if(_root.character.hitTest(_root.levelEnd) ){ _root.nextFrame(); onEnterFrame=null } }
have you got the right instance names?
Posted at: 3/4/06 03:50 AM
yes charecter (but spelled right) and levelEnd
Posted at: 3/4/06 03:51 AM
if(_root.character.hitTest(_root.levelEnd) ){ make that into one line, newgrounds automatically shorten's it.
Posted at: 3/4/06 03:52 AM
Sign-Up: 03/04/05
Posts: 7,744
Do any errors appear in the output window?
Posted at: 3/4/06 03:56 AM
yes
Posted at: 3/4/06 03:58 AM
Sign-Up: 02/19/03
Posts: 743
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
Posted at: 3/4/06 03:59 AM
At 3/4/06 03:56 AM, kevinvvfry wrote: yes
post the errors....
Posted at: 3/4/06 12:37 PM
sorry i fell asleep on the keybored earlier but it still doesn't work
Posted at: 3/4/06 12:41 PM
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?
Posted at: 3/4/06 12:42 PM
Sign-Up: 08/17/03
Posts: 16,551
nextFrame(); doesn't always work if theres a stop(); command I find. Try using _root.gotoAndPlay(#); instead.
#=frame number.
If the light is green, the trap is clean. PSN ID: KirkNG
Posted at: 3/4/06 12:44 PM
**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
Posted at: 3/4/06 12:47 PM
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.
Posted at: 3/4/06 12:49 PM
log onto aim itll be eiser we can talk like that
Posted at: 3/4/06 12:54 PM
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.
Posted at: 3/4/06 12:55 PM
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 thatI don't have aim.
oh well then it still doesntwork im so confused
Posted at: 3/4/06 12:57 PM
Sign-Up: 10/23/04
Posts: 1,611
At 3/4/06 12:54 PM, Cybex wrote: I don't have aim.
Sure ya dont -_O ,!,
..
Posted at: 3/4/06 01:08 PM
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 thatI don't have aim.oh well then it still doesntwork im so confused
What error message comes up now?
Posted at: 3/4/06 02:21 PM
Sign-Up: 06/25/04
Posts: 4,338
_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
- Kayn Slamdyke (KSd) - Motorcycle Moderator [[892646]] - Randomly destroying picture spam without warning since 2008
All times are Eastern Standard Time (GMT -5) | Current Time: 12:53 PM
<< Back