Megaboy wrote:LARGE ANNOUNCEMENT ZED DOESN'T KNOW ABOUT
Most of my special moves involve a sword (Oooohhh)
Oh and Jello
bro, he no use stencyl cuz he has all data on GM8.
Cool sword style Bro. It may give you a real edge in battle, though players must be carefully not to use up all the X Points (Sorta like Magic Points, except a lot more, and shared by the whole group).
Also, I've been having a lot of trouble with the enemy program. The enemies wont move. Here is the code I used:
The script I use:
- Code: Select all
//Codes for moving in a "roaming" style.
//Varibles needed: dir, moving, walkspeed
if moving = 1
{
if dir = 0
walkspeed -= argument0
if dir = 1
walkspeed += argument0
}
else
if moving = 0
{
if dir = 0
if walkspeed < -0.1
if walkspeed > 0.1
walkspeed += argument0
if dir = 1
if walkspeed > -0.1
if walkspeed < 0.1
walkspeed -= argument0
}
if walkspeed > argument1 //Commonly 4
walkspeed= argument1
if walkspeed < -argument1 //Reversed
walkspeed= -argument1
Enemy Object:
Creation Code:
- Code: Select all
sight = 0
attack = 0
hp = 10
moving = 0
walkspeed = 0
pursuit = 0
dir = random_range(0,1)
dirswitch = 0
exitrest = 0
alarm[0]=2.5*room_speed
Alarm Codes:
- Code: Select all
alarm[0]=2.5*room_speed
- Code: Select all
moving = random_range(0,2)
dirswitch = random_range(0,2)
if dirswitch = 2
{
if dir = 0
{
dir = 1
exitrest = 1
}
if dir = 1
{
if exitrest = 0
dir = 0
}
exitrest = 1
exitrest = 0
}
Step Event:
- Code: Select all
if moving = 2
moving = 1
D&D Command to start the Script I use for enemy movement, with argument0 being 0.5 and argument1 being 4.0.
Could someone hopefully tell me something I did wrong?