Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> MMF2 help needed, For an RPG battle system
United States
Glukom
Posted: Sep 21 2009, 03:56 PM
Quote Post


OFF TO JOIN THE NAVY
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 4071
Member No.: 2455
Joined: 6-August 06

Status: (0d) [--]


Ok so I'm trying to make a very, very, VERY basic RPG battle in this thing. My events are kind of sloppy ATM, but here's what I have so far...

user posted image

So basically, I've made everything up to the part where the person actually attacks. It's not that making the enemies health go down and resetting the bars is the problem, either, it's more the whole animation of the attack that's causing a problem. I've been sitting here for a long time trying to figure it out, but I've got nothing. Or, at least, I can't think of any way to do it that wouldn't be ridiculously sloppy or be impossible to work with in a larger game.

Basically, I'm looking for a way to animate the attack sequence, in a way that could be easily edited to support multiple characters/attacks (such as different magic moves and stuff).

Anybody have any ideas? I could upload the file itself if that would help.


--------------------
EVERYBODY WHO READS THIS AND DISLIKES THE DIRECTION OF NEW MFGG





i feel your pain :[
PMEmail PosterMSN
Top
United States
OniLink10
Posted: Sep 21 2009, 10:14 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


Maybe you could use a set of flags to tell which part of the animation should be playing? Like, for a jump attack, you could have a flag for jumping up, falling down, landing on enemy, and jumping back to starting position, so you can use that flag to determine which animation to play.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Glukom
Posted: Sep 21 2009, 10:22 PM
Quote Post


OFF TO JOIN THE NAVY
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 4071
Member No.: 2455
Joined: 6-August 06

Status: (0d) [--]


QUOTE (OniLink10 @ Sep 21 2009, 11:14 PM)
Maybe you could use a set of flags to tell which part of the animation should be playing? Like, for a jump attack, you could have a flag for jumping up, falling down, landing on enemy, and jumping back to starting position, so you can use that flag to determine which animation to play.

This'll probably sound stupid, but how do I use flags and what do I use them for?

And could you possibly direct me to a tutorial that explains them?


--------------------
EVERYBODY WHO READS THIS AND DISLIKES THE DIRECTION OF NEW MFGG





i feel your pain :[
PMEmail PosterMSN
Top
United States
OniLink10
Posted: Sep 21 2009, 10:30 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Glukom @ Sep 21 2009, 08:22 PM)
This'll probably sound stupid, but how do I use flags and what do I use them for?

And could you possibly direct me to a tutorial that explains them?

Flags are like little true/false variables that say if something has happened or has not happened. I can't find a tutorial on Flags, but maybe you can find them in the Help Files?


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Canada
Two_Finger
Posted: Sep 21 2009, 10:59 PM
Quote Post


Returning memories since 1999~
[*]

Group Icon
Group: Members
Posts: 3016
Member No.: 1533
Joined: 14-October 05

Status: (0d) [--]


QUOTE (Glukom @ Sep 21 2009, 08:22 PM)
This'll probably sound stupid, but how do I use flags and what do I use them for?

And could you possibly direct me to a tutorial that explains them?

I will try to explain flags to you
For an rpg if you want to be able to have a character guard an enemies attack you could have it set a flag to tell the game that it is guarding. You could have a menu selection set "Flag 49" and flag 49 would be set so when an enemy attacks that character it would check if flag 49 was set and if it was you could have it do less damage or something.

Sorry for not being clear but yeah I guess thats how it works or something...
You seem to pick this stuff up pretty fast so you should be able to get some of it and if not figure it out on your own pretty easily


--------------------
user posted image
PMEmail PosterUsers WebsiteAOL
Top
United States
Glukom
Posted: Sep 22 2009, 02:26 PM
Quote Post


OFF TO JOIN THE NAVY
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 4071
Member No.: 2455
Joined: 6-August 06

Status: (0d) [--]


QUOTE (Two_Finger @ Sep 21 2009, 11:59 PM)
I will try to explain flags to you
For an rpg if you want to be able to have a character guard an enemies attack you could have it set a flag to tell the game that it is guarding. You could have a menu selection set "Flag 49" and flag 49 would be set so when an enemy attacks that character it would check if flag 49 was set and if it was you could have it do less damage or something.

Sorry for not being clear but yeah I guess thats how it works or something...
You seem to pick this stuff up pretty fast so you should be able to get some of it and if not figure it out on your own pretty easily

Isn't that basically doing the job of a variable, then?

Like, couldn't setting flag 49 to on work the same way as setting, for instance, variable J to one? That is, considering I was using the variable for an on/off purpose, where 1 would be on and 0 would be off.

If it is then I think I get it, and that could be really helpful.


--------------------
EVERYBODY WHO READS THIS AND DISLIKES THE DIRECTION OF NEW MFGG





i feel your pain :[
PMEmail PosterMSN
Top
Unspecified
Nystre
Posted: Sep 22 2009, 02:55 PM
Quote Post


america is okay i guess sometimes
[*]

Group Icon
Group: Members
Posts: 6806
Member No.: 3012
Joined: 4-December 06

Status: (0d) [--]


Flags are easier if there's any way you need to toggle them on and off


i.e. there is a function where you can just automatically toggle it from whatever it is instead of checking if like

If flag = 1 set to zero

then making another version where if it equals 0 set to 1

you can just automatically toggle it, it is nifty for on/off switches etc


--------------------
 ^ ^
(˚o˚  )) う~ ugh i want to go to bed

because i browse with sigs disabled i cannot even remember what is in mine half the time

 ^  ^
(( ゚ д ゚ ) --- NO. YOU HAVE AN ASSIGNMENT DUE TOMORROW.
  つ つ
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
Miaxis
Posted: Sep 22 2009, 03:26 PM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


@ Nystre: variable = 1-variable does the exact same thing.

Flags are also called boolean variable since it can only be either true or false, but don't let this stuff confuse you. Flag on would equal a value of 1, flag off equals a value of 0.

Instead of using multiple flags for one animation you can of course use a single variable/alterable value and change its value depending on the part of the animation, too.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
Unspecified
Nystre
Posted: Sep 22 2009, 04:04 PM
Quote Post


america is okay i guess sometimes
[*]

Group Icon
Group: Members
Posts: 6806
Member No.: 3012
Joined: 4-December 06

Status: (0d) [--]


QUOTE (Miaxis @ Sep 22 2009, 03:26 PM)
@ Nystre: variable = 1-variable does the exact same thing.

Flags are also called boolean variable since it can only be either true or false, but don't let this stuff confuse you. Flag on would equal a value of 1, flag off equals a value of 0.

Instead of using multiple flags for one animation you can of course use a single variable/alterable value and change its value depending on the part of the animation, too.

um


this is exactly what I just said


--------------------
 ^ ^
(˚o˚  )) う~ ugh i want to go to bed

because i browse with sigs disabled i cannot even remember what is in mine half the time

 ^  ^
(( ゚ д ゚ ) --- NO. YOU HAVE AN ASSIGNMENT DUE TOMORROW.
  つ つ
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.1317 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.25 ]