This member has provided no bio about themself...

Report RSS The power of Fusion 2.5++ is finally in Miner Maniakos

Posted by on

I recently got the Fusion 2.5 ++ version so I was wondering, very strongly, if I should implement its power in my project or not. Finally I decided to implement 2 of the most important things available for me.

Qualifiers are now available in behaviors and this, combined with the global events, allow me to really create an engine based game.

I am presenting you hereafter the way I do it in case you are interested.

Solving problem No 1 : Using behaviors on a group, in order to define roles on several objects easily

Behaviors are my thing...My favorite, my love...My.. prrrecious... But I had this major problem. I couldn't use it for qualifiers. Now a similar way of doing it would be to put it in the main events. No, I want my main events clean. I want an enginelike structure. Close to an object oriented environment. Behaviors allowed this but I had to copy paste them for each same type of object. I.e. enemies...With one code that is based on qualifier bad I could do it but not in behaviors. Now finally I can. So what I did is:

1. created an active to put the behavior for the enemies using the qualifier tagged Bad
Click image for larger version. 

Name: 2.5pp_01.PNG 
Views: 3 
Size: 6.6 KB 
ID: 26983
2. all my enemies have some alterable values that control their AI efficiency and their characteristics
Click image for larger version. 

Name: 2.5pp_02.PNG 
Views: 2 
Size: 2.2 KB 
ID: 26984
3. assigned qualifier Bad to the enemies
Click image for larger version. 

Name: 2.5pp_04.PNG 
Views: 1 
Size: 5.7 KB 
ID: 26985

The Behavior code looks like bellow
Click image for larger version. 

Name: 2.5pp_03.PNG 
Views: 3 
Size: 11.6 KB 
ID: 26986

Really, all I have to do now to put a new enemy is just put it in the game and step 2 and 3.

Solving problem No 2 : Create events that give an enginelike structure to the game.

Creating different code for each level or copy pasting the same code was always something it didn't feel right. Now I combine the global objects with the global events and I get a made once use everywhere code for all my game.
This gives a feeling like I am creating my world. I put my rules and then I just put objects, assign them qualifiers to identify what they are representing in my game(combines with problem 1) and everything else is automatic.

I only have to touch my code in one place, don't have to bother for updating code or fixing bugs in all of my frames etc.

So, thank you Clickteam!

Hope this inspires some people.

Now ManMin is going to be closer to an engine and I am thinking of providing it in the Clickstore if all goes well.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: