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 :)
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.
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();
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.