header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
jayden
Points:0
Posts:0

9/3/2011 3:14:42 AM

Title: certain score goes to certain frame


I've made a side scrolling shooter game and when you shoot an enemy you get 10 points. I want code that makes the next frame come up when the score = 1000 and I also dont know where to attach the code, to the main timeline or to the character movie clip. Pls help :)



1
Ronald
Points: 430
Posts:0
9/3/2011 10:15:16 AM



you should check the condition where you are giving 10 points after shooting. Check if the total exceeds 1000 then move it to the next frame. If you still have problem , you can share the source file so that i can see and suggest you the exact solution.

2
jayden
Points: 0
Posts:0
9/4/2011 5:56:34 PM



how do i post the source file here- or should i email it to you. :) thanks for your help but i tried and it didnt work. btw my bullet code controls my score- heres an excerpt.



	for (i = 0; i < _root.nrEnemies; i++)
	{
		if (this.hitTest(_root["Enemy" + i]))
		{
			_root.score += 10;
			_root["Enemy" + i].reset();
			this.removeMovieClip();


3
Justin
Points: 600
Posts:0
9/11/2011 9:45:01 AM



you can upload your source code to some file sharing website or your own server and paste the link here.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions