The Daily Click ::. Forums ::. Klik Coding Help ::. odd platform bug - tgf
 

Post Reply  Post Oekaki 
 

Posted By Message

tetsuya_shino



Registered
  12/08/2004
Points
  491
23rd December, 2008 at 06:40:51 -

Greetings. I've been working on my action rpg which has been going well until last night. I have 3 enemies that fire a bullet doing a shooting animation. when the player character is on the same plane as them (same Y value), every thing works fine. but if the player is above or below the enemies, they will do the animation, but no bullet will appear. I jump back up (or down) to their plane and it works again.

And sometimes the players bullets don't always appear. it's really driving me crazy. Any ideas?

 
n/a

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd December, 2008 at 06:59:19 -

Could you give a source, or screenshot of the "shooting" part of your code?

 
n/a ...

tetsuya_shino



Registered
  12/08/2004
Points
  491
23rd December, 2008 at 10:11:04 -

I fixed it. Somehow even though the enemy animations were only set to go left or right, because I had the enemies follow after the hero, sometimes the direction of the hero would be above, low, etc. but I fixed it by having the code check for the x value of the hero rather then the direction of the enemy.

the other 'bug' was just a flaw in my code i didn't notice until now. >_>

 
n/a
   

Post Reply



 



Advertisement

Worth A Click