• Flash 8 game!
    20 replies, posted
Hi i am currently making a Game in flash 8 (i use flash eight because i don't want to pay for a newer flash) Any way- The game is Mostly secret- but i need a little help with the points, Ive been programming on it for a while - but i just cannot figure this out. Something will not take the points away when i touch it- this is the code im using. onClipEvent (enterFrame) { if (_root.player.hitTest(this)) { [B]_root.score += 1;[/B] } } The bold Part is Suppose to be like this [B]_root.score -= 1;[/B] Would that work? ( i believe it would- i just wanted to check it out) But when i touch the thing- It wont make my points go down. (note the player- is named player so thats good) I am sorry for being so vague- its kinda secret but if you have any questions that may help me get it working feel free to ask! -EDIT- Clearing some stuff up Its Well, the oppiste of collecting a coin in Mario- (just to kinda, clear it) But its the opposite, Were when you touch something _root.score (which is A dynamic text box with the number zero in it) goes down from what you have - like you collect 10 points, You touch a box - 2 go away. Pretty much that
why are you keeping it secret? Ideas are worthless, execution is where it's at.
I would put some debug statements in there to make sure that if statement is getting executed at all. After that I would recommend moving the score variable inside the player object.
[QUOTE=turb_;21042489]why are you keeping it secret? Ideas are worthless, execution is where it's at.[/QUOTE] Well, It is being executed, but there is nothing being accomplished in what you just said.
No, what I meant is that no-one is going to fucking steal your shit idea so if you want help, just tell us what you're doing.
[QUOTE=turb_;21042971]No, what I meant is that no-one is going to fucking steal your shit idea so if you want help, just tell us what you're doing.[/QUOTE] You know what- Just because your on your period dosen't mean you should just go on posting crap that benefits no one. Im going to end this- can we please just get back to my question.
[QUOTE=chucknorrisme;21043354]You know what- Just because your on your period dosen't mean you should just go on posting crap that benefits no one.[/quote] wow that's mature [quote]can we please just get back to my question.[/QUOTE] You're acting the wrong way if you're looking for help
[QUOTE=turb_;21043441]wow that's mature You're acting the wrong way if you're looking for help[/QUOTE] NO I'm just getting flustered because every time i call for assistance some smart ass like you posts some freaking retarded comment the is completely pointless and just waste more of my time.
turb_ has a history of being aggressive to new people.
[QUOTE=Chad Mobile;21044159]turb_ has a history of being aggressive to new people.[/QUOTE] lol, thanks :D Lol turb isnt that old himself
no my previous account got perma'd
For doing that "delete system32" thing. lol.
[QUOTE=turb_;21044516]no my previous account got perma'd[/QUOTE] oh - well so did mine so. alright nevermind i figured out my problem lol i dont know if i can say my old name- i may get this alt banned lol
[URL="http://www.facepunch.com/member.php?u=198817"]That's understandable. Wouldn't want anyone to get banned would we?[/URL]
[QUOTE=HeckXX;21044877][URL="http://www.facepunch.com/member.php?u=198817"]That's understandable. Wouldn't want anyone to get banned would we?[/URL][/QUOTE] Wtf lol- your good :D
You no longer wanted an account, but your back? :haw:
I suppose in your position I'd do something like this: [code] onClipEvent (enterFrame) { if (_root.player.hitTest(this)) { trace("Collision"); _root.score += 1; } } [/code] If that makes it print we know the collision is being detected right but the score isn't being changed. If it doesn't print we know something else is going wrong.
[QUOTE=Chad Mobile;21045173]You no longer wanted an account, but your back? :haw:[/QUOTE] im werid '.'
[QUOTE=chucknorrisme;21045031]Wtf lol- your good :D[/QUOTE] He's not "good". You simply make it easy: [QUOTE]Steam profile ID Higuything21 YouTube Name Higuything21 DeviantART Username Higuything21[/QUOTE] :colbert:
[QUOTE=dag10;21071133]He's not "good". You simply make it easy: :colbert:[/QUOTE] Yea i know- lol i was joking
[QUOTE=chucknorrisme;21042390] onClipEvent (enterFrame) { if (_root.player.hitTest(this)) { [B]_root.score += 1;[/B] } } The bold Part is Suppose to be like this [B]_root.score -= 1;[/B] Would that work? ( i believe it would- i just wanted to check it out) But when i touch the thing- It wont make my points go down. (note the player- is named player so thats good)[/QUOTE] Does it even work going up? Try replacing it with MegaJohnny's code to make sure.
Sorry, you need to Log In to post a reply to this thread.