|
#1
|
||||
|
||||
|
Okay, new slight problem.
When you complete a level, I'd like it to display how much I scored on the 'level completed' frame. I have a dynamic textbox with the var of score, I dunno if that could aid anything.
__________________
'Lo peoples. I'm NiallTL (Neel Tee Ehl). Eh, I don't have to put effort into this, do I?
Last edited by NiallTL; 05-03-2008 at 07:24 PM. |
|
#2
|
|||||||||
|
|||||||||
|
Quote:
The best place to put it is in the same place where you reduce the lives so instead of just having: Code:
lives--; Code:
lives--;
if (lives < 1) {
gotoAndPlay(16);
}
Code:
lives--;
if (lives < 1) {
_root.gotoAndPlay(16);
}
![]()
__________________
Gaz's Screenshot Tutorial | Add Games to TGH
My dog licks me every day. My friends say it is cute but I know better. It's tasting me, tasting me and counting down the days till it's big enough to eat me ![]() |
|
#3
|
||||
|
||||
|
YES! Thanks so much, I managed to get it working now
![]() Though lives--; didn't do it, I had to make it _root.lives--; See, I have more knowledge now, Gaz! Thanks again, you will be credited for help. Sorry for double post, but new problem is here. Look up top.
__________________
'Lo peoples. I'm NiallTL (Neel Tee Ehl). Eh, I don't have to put effort into this, do I?
Last edited by NiallTL; 05-03-2008 at 07:25 PM. Reason: Automerged Doublepost |
|
#4
|
|||||||||
|
|||||||||
|
double posts are automatically merged
and when can we test out this game?
__________________
(\ (\ ( ^_^) (_(")(") This is Bunny. Copy and paste bunny into your sig to help him gain world domination... (\/) (-_-) (")(") This is Bunny's friend. Copy and paste Bunny's friend for back-up... /\_/\ ( .. ) (")(") This is robot-bunny. He will dominate everything who stands in Bunny's path... |\_/| _______. |^^|| ' | |'') |'') Bunny's bodyguard carries a gun everywhere he goes... (\__/) ( O.o) (> < ) Its a demented bunny... (\(\ ~~ be a bunny ~~ (='.')~~ make war ~~ o(_")")~~ not luv ~~ |
|
#5
|
|||||||||
|
|||||||||
|
Quote:
![]() Now just put a static text box above it that says something like "Level completed! You scored:" + your level complete screen is complete!
__________________
Gaz's Screenshot Tutorial | Add Games to TGH
My dog licks me every day. My friends say it is cute but I know better. It's tasting me, tasting me and counting down the days till it's big enough to eat me ![]() |
|
#6
|
||||
|
||||
|
Ah, true, very true. Never actually thought of that. Thanks again.
Next question! ![]() My character has a lot of hittests to manage, as it's a navigate ballgame sort of thing. The trouble is, I have loads of code, just repeats changing the instance name. Snippet: Code:
if (_root.hit1.hitTest(_root.ball.ballHit)) {
xspeed = 0;
yspeed = 0;
_x = 192;
_y = 27;
_root.score--;
_root.lives--;
if (_root.lives<1) {
_root.fadeoutfail.gotoAndPlay(2);
_root.ball.gotoAndPlay(2);
}
}
if (_root.hit2.hitTest(_root.ball.ballHit)) {
xspeed = 0;
yspeed = 0;
_x = 192;
_y = 27;
_root.score--;
_root.lives--;
if (_root.lives<1) {
_root.fadeoutfail.gotoAndPlay(2);
_root.ball.gotoAndPlay(2);
}
}
I was wondering if there is any way to merge hits, like so I could have something like: Code:
(_root.hit2, hit3, hit4.hitTest(_root.ball.ballHit)) {
Any way to sort this? Thanks.
__________________
'Lo peoples. I'm NiallTL (Neel Tee Ehl). Eh, I don't have to put effort into this, do I?
|
|
#7
|
|||||||||
|
|||||||||
|
Lol. i'm gone. a tad too complicated..
![]()
__________________
![]() Noah and the whale - 5 years Time -
|
|
#8
|
||||
|
||||
|
Then wasn't that post kinda useless then? :/
__________________
'Lo peoples. I'm NiallTL (Neel Tee Ehl). Eh, I don't have to put effort into this, do I?
|
|
#9
|
|||||||||
|
|||||||||
|
when will we be able to test!
__________________
(\ (\ ( ^_^) (_(")(") This is Bunny. Copy and paste bunny into your sig to help him gain world domination... (\/) (-_-) (")(") This is Bunny's friend. Copy and paste Bunny's friend for back-up... /\_/\ ( .. ) (")(") This is robot-bunny. He will dominate everything who stands in Bunny's path... |\_/| _______. |^^|| ' | |'') |'') Bunny's bodyguard carries a gun everywhere he goes... (\__/) ( O.o) (> < ) Its a demented bunny... (\(\ ~~ be a bunny ~~ (='.')~~ make war ~~ o(_")")~~ not luv ~~ |
|
#10
|
||||
|
||||
|
I wanna get some of the key issues out of the way before you can test. You can test in a while.
__________________
'Lo peoples. I'm NiallTL (Neel Tee Ehl). Eh, I don't have to put effort into this, do I?
|
| Sponsored Links |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|