esn23
Active member
Okay so I wanted to create a lightning shield around storm for my game. The idea of it was if an enemy gets to close they get shocked which was the easy part. But then I also wanted all gunners and people that shot projectiles to hit the shield and not storm. The idea was the shield would have life and once the life was gone the shield would vanish or once the time ran out. So I decided to use spawnbind with the shield being another entity and have it be declared as in npc so it could get hit etc. But when i spawnbind it as an npc it wont appear. Is there another way to do the desired effect that I want for the shield? Any help would be great thanks. BTW here is what i did for the entity
name shield
type npc
life 25
lifespan 25
alpha 6
setlayer 150
palette none
candamage enemy obstacle
anim idle
loop 1
offset 56 94
bbox 23 20 87 96
delay 4
shock 41 17 48 33 5 0 0 0 0 0
frame data/chars/storm/shield/1.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 16 80 66 5 0 0 0 0 0
frame data/chars/storm/shield/2.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 17 87 82 5 0 0 0 0 0
frame data/chars/storm/shield/3.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 20 87 96 5 0 0 0 0 0
frame data/chars/storm/shield/4.png
shock 0 0 0 0 0 0 0 0 0 0
shock 24 14 82 101 5 0 0 0 0 0
frame data/chars/storm/shield/5.png
shock 0 0 0 0 0 0 0 0 0 0
shock 32 13 72 102 5 0 0 0 0 0
frame data/chars/storm/shield/6.png
shock 0 0 0 0 0 0 0 0 0 0
shock 24 14 82 101 5 0 0 0 0 0
frame data/chars/storm/shield/5.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 20 87 96 5 0 0 0 0 0
frame data/chars/storm/shield/4.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 17 87 82 5 0 0 0 0 0
frame data/chars/storm/shield/3.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 16 80 66 5 0 0 0 0 0
frame data/chars/storm/shield/2.png
shock 0 0 0 0 0 0 0 0 0 0
and in storm i used the spawn bind command. It was working till i delcared the above as npc
name shield
type npc
life 25
lifespan 25
alpha 6
setlayer 150
palette none
candamage enemy obstacle
anim idle
loop 1
offset 56 94
bbox 23 20 87 96
delay 4
shock 41 17 48 33 5 0 0 0 0 0
frame data/chars/storm/shield/1.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 16 80 66 5 0 0 0 0 0
frame data/chars/storm/shield/2.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 17 87 82 5 0 0 0 0 0
frame data/chars/storm/shield/3.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 20 87 96 5 0 0 0 0 0
frame data/chars/storm/shield/4.png
shock 0 0 0 0 0 0 0 0 0 0
shock 24 14 82 101 5 0 0 0 0 0
frame data/chars/storm/shield/5.png
shock 0 0 0 0 0 0 0 0 0 0
shock 32 13 72 102 5 0 0 0 0 0
frame data/chars/storm/shield/6.png
shock 0 0 0 0 0 0 0 0 0 0
shock 24 14 82 101 5 0 0 0 0 0
frame data/chars/storm/shield/5.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 20 87 96 5 0 0 0 0 0
frame data/chars/storm/shield/4.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 17 87 82 5 0 0 0 0 0
frame data/chars/storm/shield/3.png
shock 0 0 0 0 0 0 0 0 0 0
shock 23 16 80 66 5 0 0 0 0 0
frame data/chars/storm/shield/2.png
shock 0 0 0 0 0 0 0 0 0 0
and in storm i used the spawn bind command. It was working till i delcared the above as npc