Flash Game Maker: DOWNLOADSetup
Q:How do I add this to flash?
a-download and unzip
b-open flash preferences
c-From Category, choose ActionScript and click "Action Script 2.0 settings"
d-Browse and choose the unzipped folder "myas2ext".
Q:I want to do a test that I correctly set it up
a-Make new flash file (As2)
b-Create a rectangle, select it and press F8
c-Tick [Export for ActionScript]
d-In the Class field, write guzu.game1.Room
If you get no error, you are good to go
If you want to test more, double click the room and:
-Create a rectangle and press F8, click export for actionscript
-In the Class field, write guzu.game1.Player
-Run it and control the player with right left up =>
Q:I tried adding a second attack for player, but when I add the actionscript for the second combo using the combo setup.html, it will stop doing the first attack, and won't do the second one neither.
I also just want two attacks, one that executes with the "a" key and the second one with the "s" key if possible.
A:Make sure you add them in the same combo script, and not separately. Also, to add the s key, you need to add the keys configuration at the player setup.html[Monsters]
Q:Is it possible to prevent monsters from bouncing back?
A:To prevent them from bouncing back, write in the first frame:
you can find the rest of them in the player.txt, last section.
Q:Is it possible to add something like a visual range for monsters, so that at the begining, not ALL monsters go directly to the player?
A:It depends on you how you program the AI. But if you use the [attack and run.txt] file, you need to modify it a bit. Change:
if (ai.f.distanceToPlayer()<200) ai.f.gotoPlayer();
you can replace the 200 with anything you want.
Q: I want to know if it is possible to add up to two or three attacks to a monster enemy.
A:There are many ways. But the simplest is just to add in the first frame of the attack:
if (Math.random()>0.5) this.gotoAndPlay("AttackA");
Note that this might be a bit buggy. Tell me if you face anything.
Or you can just randomly execute different combo setup function whenever random is called.[Room]
Q: I couldn't pause the game since I don't know how to add the "pause()" and "resume()" functions. Do I have to just write that in the first frame of the room movieClip?
A:Here is an example of pause and resume buttons: www.deviantart.com/users/outgo…
The pause() and resume() functions are Room functions. Read Room.txt for the rest of the functions.
Also, Room functions can be called from within actors and players through the reference screen. So you can write screen.pause();
Q:I've noticed that after adding a limit object into the room, the camera will follow the character, but the character will be at the middle of the y axis, and I wanted to know if the character could be a little lower in "y" so that there is more "air space" for the life bar and background.
A:You can simply place a movieClip of class Actor inside the player and call it "followme". And then, in the first frame of player, write:
Can be found in the Room.txt file
Q:how to create a "GO>" like sign that appears when you clear an area just as in one of your games: guzu.deviantart.com/art/Art-Tr…
A*:This might be the least prepared thing, but there is a trick.
On the Wait object, add the following in the first frame:
screen.goSign.play(); // or maybe _parent.goSign
Make a GO sign, and in the properties, make instance name goSign.
Make last frame of Go sign empty and add stop();
Q:I managed to do the GO sign, and it works fine, but I have the problem that if remains in the stage and when you move, it does too, so I wanted to know if it was possible to make it static.
A:For the Go sign, you can use Background class. Background objects will move differently than the normal objects. And you can set their speed to zero so they follow the screen.
Q:How can I add a life bar?
A:The player contains a variable called status["hp"]. So, if your player is called Player1, you can read its hp using Player1.status["hp"].
Q:I did an item that heals the player, using guzu.game1.Attack, just as you did in the tutorials in the Examples folder. But I wanted to know if it was possible to make enemies actually drop items, and again, modify how often that would happen, like a random happening.
A:You can simply use create(item1,0,0) to make monster create item1. You can find this command in Actor.txt
To create the item when a monster die, you need to add a die frame and put the create in the die frame. You add a die frame exactly like you add the walk frame.
* answers with star need revising
Thanks to Shi-Gu
suggestion, I'll try to use questions to build up an FAQ for this Flash Game Maker.