monster projectile woes

Post Reply
MrGodman
Posts: 8
Joined: Fri Aug 17, 2018 1:46 am

monster projectile woes

Post by MrGodman » Wed Sep 05, 2018 8:10 am

https://youtu.be/b1n_-DaF8SY

been on this problem on and off for pretty much all day and i think it's time to ask where in asm i need to go to to give properties of monster projectiles. i want to have the projectiles to simply fire towards the player, or simply left or right but tweaks i been making so far leads me to this best result.
User avatar
WolfMerrik
Posts: 199
Joined: Sat Aug 11, 2018 4:59 pm
Location: Maine
Contact:

Re: monster projectile woes

Post by WolfMerrik » Wed Sep 05, 2018 1:19 pm

The "ignore physics" (which I am assuming you are using) flag works strangely in the platformer module. I was working on a recode of that, solely for "bullet physics" but sadly have not had the free time with work. Have you tried just using "ignore gravity" instead, and removing the "ignore physics"?
ImageWant to download & share Image NESMaker Resources? Check out My Files on www.NESMakerFiles.com Image
MrGodman
Posts: 8
Joined: Fri Aug 17, 2018 1:46 am

Re: monster projectile woes

Post by MrGodman » Wed Sep 05, 2018 5:30 pm

no, neither flags are turned on.

i now changed the monster code so on Action step zero i have him moving LR, on timer 0 change to shoot forward, on timer 1, then null for timer 4 going back to the shoot forward. the randomness of LR makes the enemy sometimes shoot the wrong way, but now the projectiles are moving across the screen. i would want to make code where the monster needs to face the player depending on if it's either on its left or right, but in the meantime, if there's a way to hardwire AI to left or right on spawn i would love to learn about it.
MrGodman
Posts: 8
Joined: Fri Aug 17, 2018 1:46 am

Re: monster projectile woes

Post by MrGodman » Wed Sep 05, 2018 10:38 pm

https://www.youtube.com/watch?v=yKw2-prxcMY

just like to say that i got the enemies to a state where they work. had to dig into other threads to find a clue as to where to tackle the problem and it actually feels good to get KILLED by an enemy of your creation. thanks to the clever brains on this MB.
Post Reply