Help with Projectiiles

  • Thread starter Thread starter dev2d
  • Start date Start date
D

dev2d

Guest
Hi everyone! I'm looking for a way to make enemy projectiles target and shoot towards the player or npc's direction. the functions i used make the projectile shoot straight (pshot & knife), down towards the ground (star) or act as a homing projectile using the chase subtype and doe not work well with my 2D mod.

would this require me to use scripts (not familiar with scripting) or is there a way to set this up through some of openbor's basic functions?
 
yes i've tried both those setting but the projectile just shoots straight or spawns at the ground following the player until it hits or is removed by the lifespan counter. and im working on a 2d style mod so i do not know how to get entities to move diagonally.

i've tried to use the contra mod scripts or any other scripts here for my game and apply it to the player but it says: there's an exception while executing script 'animationscript'. what i'm trying to do is have the enemy target any nearby hostiles in range and have the projectile shot in their direction like a shmup. (e.g. enemy on building and player in view on the ground)
 
First of all, for 2D mods, DO NOT use knife. It doesn't suit 2D mods at all.
2nd, rule for 2D mods are totally different, most enemy AI can't be used so forget about chase subtype or aimove.

Now back to your problem,
there's an exception while executing script 'animationscript'

this is caused by some script error. The real error is somewhere above this message.

As for your main purpose, I suggest downloading this demo:

http://www.mediafire.com/?e4csf96xd9e4ki5

This is Castlevania Collab demo. It has targetted projectile and chasing enemy just like what you needed.

To be detailed:
- Giant Bat (subboss of Cemetery) can shoot projectile straight at player
- Phantom Skulls (regular enemy in Romania Castle) chase player

Those skulls don't remove themselves after hitting player but that can easily be coded :)

Give that demo a try and I'll guide you using it :)
 
thank you a million times bloodbane! the giant bat in that demo has exactly what i've been trying to execute! i'm going try it and reply with the results. btw that mod caught my attention and i got sided tracked a bit and i hope to see it finished to soon its really good!!!
 
Back
Top Bottom