|
so, i have this stationary enemy, and right in front of him is an event that is a bullet. when variable BOSS BATTLE GUN is set at one, the bullet is set to teleport to a specific spot and quit moving. 1.5 seconds later the variable is set to 2 and it is set to appear and move down vertically. originally the bullet had two pages, one for when its there, and one for when its not. on the page where it's there i have it set for a collision with hero, where it will remove 5 hp and then teleport to the original spot it is shot from, and it will then the variable will then change it to the bullet that isn't there. the only problem i have is that if the player isn't hit by the bullet, it would continue to move up and down vertically until the player gets hit. to try to fix this i made a parallel process page on the bullet event set to after 0.5 seconds the bullet would disappear and teleport to the original spot. i figured this would fix it but now the game disregards the page about the player being hit and instead if you come in contact with it nothing it stays in front of you and does no damage. does anybody know how to fix this.? i know the basics of variables and switches, so if anybody knows anything that would help me with my problem that would be great.
|