Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dbuske on Mon 23/05/2011 21:35:31

Title: My Dumbledore game help
Post by: dbuske on Mon 23/05/2011 21:35:31
I was wondering if anyone has any suggestions for me.
I am starting on doing the scripting for the magic battles in the game.
Does anyone have a suggestion on how to do the battles.
I am using the teleport module to  pop the characters around the screen
like they are apparating, like in Harry Potter. Staying in the same room.
Any ideas will help.
Thank you!
I know I have to have magic bolts flying back and forth,
but I have no idea to even start.
Title: Re: My Dumbledore game help
Post by: Khris on Mon 23/05/2011 23:05:39
The problem with answering this is that what you are asking for is pretty intricate to implement.
We can't really suggest a few lines of code and link you to some manual pages here and be done.

The problem is precisely that you don't even know how to start. Because this means that we basically have to code this for you.

Having stuff flying back and forth can be realized using a character; I'd build the view so that each spell's animation is a single loop, so upon a spell being casted, the character is positioned and turned to face the appropriate direction, then it is animated repeatedly and moved by directly changing it's coordinates.

This requires understanding how to move something from x1, y1 to x2, y2. There are lots of threads about this already, usually about moving bullets.

An important point is of course the battle system itself. Real-time? Round-based? Movement points?
Even naming a game with a similar battle system is a great help at this point.

Note however, that -no offense- based on your question and previous games, the most sensible way to go about this is
a) find someone who's coding this for you or
b) invest a few weeks or months to learn how to code advanced stuff yourself.

Coding a complex system is all about breaking it down into its components and realizing them one after another. A programming language is basically a huge toolbox, and learning how and when to use which tool is the skill required here.

Asking how to do a specific part of your battle system is precisely what this forum's for.
However, a sufficient answer to your question would boil down to writing a multiple page tutorial.
Title: Re: My Dumbledore game help
Post by: monkey0506 on Tue 24/05/2011 00:44:58
Seeing as Khris has already covered the serious front, I'll take the sarcastic one! :=

Quote from: dbuske on Mon 23/05/2011 21:35:31I was wondering if anyone has any suggestions for me.
I am starting on doing the scripting for the magic battles in the game.
Does anyone have a suggestion on how to do the battles
...
I know I have to have magic bolts flying back and forth,
but I have no idea to even start.

I think that I have a,
suggestion for you.

For doing the scripting of the magical battles in your
Dumbledore game you
are making is that what I am saying is you should use the AGS scripting language already built-in to AGS!!

It works good, I used it one time.

I used all the commands that I needed and the game did work!!

Just do what I did,
trust me your game will be success.
Title: Re: My Dumbledore game help
Post by: Ryan Timothy B on Tue 24/05/2011 01:00:42
L
O
L
Title: Re: My Dumbledore game help
Post by: dbuske on Tue 24/05/2011 20:28:37
Thanks for the response Khris. Your points have been a help.  I wasn't looking for code.  I just need help to get started and ideas to make it happen.


Quote from: monkey_05_06 on Tue 24/05/2011 00:44:58
Seeing as Khris has already covered the serious front, I'll take the sarcastic one! :=

Quote from: dbuske on Mon 23/05/2011 21:35:31I was wondering if anyone has any suggestions for me.
I am starting on doing the scripting for the magic battles in the game.
Does anyone have a suggestion on how to do the battles
...
I know I have to have magic bolts flying back and forth,
but I have no idea to even start.

I think that I have a,
suggestion for you.

For doing the scripting of the magical battles in your
Dumbledore game you
are making is that what I am saying is you should use the AGS scripting language already built-in to AGS!!

It works good, I used it one time.

I used all the commands that I needed and the game did work!!

Just do what I did,
trust me your game will be success.