Page 1 of 1

Metal slug survivor

PostPosted: Wed Apr 21, 2010 5:16 am
by krenisis
Ok here is metal slug survivor try to last as long as you can...great music,awesome sound effects,graphics....real fun game once you get the hang of it.

ALso i need some advice how do I program it so when i reach a score of 500 it goes to next level.

Re: Metal slug survivor

PostPosted: Thu Apr 29, 2010 9:04 am
by Nanorobot
Good work! I like it!

And about changing level, you can try something like this.
For example you have var Score. It counts you Score.
So, make in background, When actor Draw -> Script Editor :
if (Score >= 500)
{
LoadGame (...);
}
Or you can change here some attributes of enemys.
if (Score >= 500)
{
Attack +=1;
Speed +=1;
}
And so on. I hope this help you.
Good luck!

Re: Metal slug survivor

PostPosted: Mon May 03, 2010 3:15 am
by uan
great work on this one!

Re: Metal slug survivor

PostPosted: Tue May 04, 2010 6:27 pm
by lcl
Fun game, but what if you just set that shooting unable to repeat? It doesn't look very good, if it shoots all the time you keep button pressed... :(
But good work still! :D

Re: Metal slug survivor

PostPosted: Thu May 06, 2010 11:32 am
by lcl
I mean that you should try something like this:

First add variable called "can_shoot"
Shooting button -> Mouse Button Down -> Left -> Script Editor
Code: Select all
if (can_shoot == 1)
{
    CreateActor(That your bullet actor);
    can_shoot = 0;
}

And then add Mouse Button Up -> Left -> Script Editor
Code: Select all
can_shoot = 1;


I hope this helps you! :D

Re: Metal slug survivor

PostPosted: Fri May 07, 2010 2:38 am
by krenisis
Thanks alot for the advice I was trying to figure how to do it but you just saved me alot of time. I use the variable you put next time.

Re: Metal slug survivor

PostPosted: Fri May 07, 2010 12:37 pm
by lcl
I had a look into your code and the easiest way to make it not repeat the shoot is to edit your tanks draw actor code the following way:

Code: Select all
if(rightm==1)
x=x+12;
if(leftm==1)
x=x-12;
if(shotm==1)
{
    CreateActor("bulletup", "bullet up fat", "(none)", "(none)", 0, 0, false);
    shotm = 0;
}

Insert that code over your previous draw actor code. Everything else is the same as in your game, than that shooting thing. :D
Now it returns the value of shotm to 0, so it doesn't shoot anymore until you press shooting button again. :D

Re: Metal slug survivor

PostPosted: Tue Mar 22, 2011 7:54 pm
by again
I was looking throught my old games and I think this one is one I have to put on iphone....Of course I will have to redo the graphics but I remember being hooked on this game.