I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: Storm_Lakitu2 on March 30, 2015, 10:41:52 AM

Title: Avoidance Battles - Help plz!
Post by: Storm_Lakitu2 on March 30, 2015, 10:41:52 AM
Hello there!

Im currently working on a fangame with Sephalos Engine and now i got the idea to put in an Avoidance Battle in a specific part of the game. But the problem is - i dont know how to make one!

If anyone can tell me how to make one, and if i have to code, tell me how and what to code, i would be very grateful. Also, i have never coded before, so i dont have any experience in this.

Thx already, Storm.
Title: Re: Avoidance Battles - Help plz!
Post by: Sephalos on March 30, 2015, 11:30:05 AM
You'll need 3 types of objects.

A boss, projectile spawners and projectile objects. Set up a timer on the boss that will create projectile spawners at specific times. Then set up a timer on the projectile spawners to create projectile objects.
Title: Re: Avoidance Battles - Help plz!
Post by: Sudnep on March 30, 2015, 11:36:37 AM
There are two ways that seem to be relatively easy to understand.

The first is the built in timeline functions in gamemaker and the other is a counter that uses switch(case) structure.

Timeline:
(click to show/hide)

Stepcounter:
(click to show/hide)

There might be more ways of doing it but I don't know them and it's all preference at that point.
Use controller objects to do more of the spammy stuff every frame for sake of time and how much you have to type.
Title: Re: Avoidance Battles - Help plz!
Post by: Storm_Lakitu2 on March 31, 2015, 06:08:08 AM
Thx already for the helpful Replys.
I will try them out ;)

I guess now i can make myself my own Rainbow Miku with Shitty Japanese Anime Music and a Moving Grid Background right? Kappa
Title: Re: Avoidance Battles - Help plz!
Post by: klazen108 on April 01, 2015, 09:43:39 AM
I guess now i can make myself my own Rainbow Miku with Shitty Japanese Anime Music and a Moving Grid Background right? Kappa

 :Kreygasm:
Title: Re: Avoidance Battles - Help plz!
Post by: infern0man1 on June 15, 2015, 12:45:13 PM
I'm probably just missing something obvious, but, for sudnep's second method, what exactly would allow me to choose when I want each case to be executed? I want to say the case number itself, but I'm very unsure of that.
Title: Re: Avoidance Battles - Help plz!
Post by: Sudnep on June 15, 2015, 01:18:01 PM
I'm probably just missing something obvious, but, for sudnep's second method, what exactly would allow me to choose when I want each case to be executed? I want to say the case number itself, but I'm very unsure of that.
case <frame you want it to play on>:
   this thing you want to happen
break;

I messed up the example thing because case 0  probably won't work since it increments STEPCOUNTER from 0 to 1 before it ever occurs.
Title: Re: Avoidance Battles - Help plz!
Post by: infern0man1 on June 15, 2015, 01:43:59 PM
ah ok, thankya <3
Title: Re: Avoidance Battles - Help plz!
Post by: verveplay on June 29, 2015, 07:54:52 AM
I know i'm kinda late, but WetWookie made an amazing set of scripts allowing you to make shapes from projectiles and move them.
https://www.iwannacommunity.com/forum/index.php?topic=1704.0