Author Topic: Avoidance Battles - Help plz!  (Read 2746 times)

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Avoidance Battles - Help plz!
« 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.
"Restarting Music? pff, my game restarts if you die!"

Sephalos

  • Spike Dodger
  • Posts: 228
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Chrome 41.0.2272.101 Chrome 41.0.2272.101
    • View Profile
  • Playstyle: Gamepad
Re: Avoidance Battles - Help plz!
« Reply #1 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.

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 36.0 Firefox 36.0
    • View Profile
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #2 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.

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #3 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
"Restarting Music? pff, my game restarts if you die!"

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Chrome 41.0.2272.101 Chrome 41.0.2272.101
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #4 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:

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Linux Linux
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #5 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.

Sudnep

  • Global Moderator
  • Spike Dodger
  • Posts: 124
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.124 Chrome 43.0.2357.124
    • View Profile
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #6 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.

infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Linux Linux
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #7 on: June 15, 2015, 01:43:59 PM »
ah ok, thankya <3

verveplay

  • Wannabe
  • Posts: 31
  • Hi
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
  • Playstyle: Keyboard
Re: Avoidance Battles - Help plz!
« Reply #8 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