Can someone help me fix the Error ?

SadiQ

  • Posts: 1795
LOOK in all the behaviors attached to your actor for a block similar to the one you posted above. (When self hits something)
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

zidaxxx

  • Posts: 131
Theses are all the behaviors my actors use...  I don't know what behavior causing the actor to get error when colliding.

I think sword attack do also give problem cuz when I attack the Enemy Bullet the main actor's weapon disappeared.

jrh737

  • Posts: 15

zidaxxx

  • Posts: 131
It's still doesn't solve the problem sir jrh737 I did what you said but still the error occurs between the collision of Enemy Bullet and the Sword and Spear.

zidaxxx

  • Posts: 131
someone can help me please?

yoplalala

  • *
  • Posts: 1632
Did you change you Die upon collision with the boolean like we told you ? ( because the screenshot in your post doesn't indicate that, but maybe it's an old image)

zidaxxx

  • Posts: 131
I did and I did add 8 more same behavior but different actor but still got that error. when it collides with the sword from enemy bullet.

zidaxxx

  • Posts: 131
I have the feeling that the Sword & Spear Actors gives the error on it when colliding with the Enemy Bullets.

SadiQ

  • Posts: 1795
That's what we've been telling you for the last several posts.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

zidaxxx

  • Posts: 131
And also the Animation of  Attack_Down, Attack_Up, Attack_Left, Attack_Right of main actor gives error when colliding the Enemy Bullets also the Sword and Spear Melee weapons.

so guys how can I fix this problem? sorry for slow response .

yoplalala

  • *
  • Posts: 1632
In your sword behaviour you have multiple times
do after 0.19 second
       kill sword

(surely the same with the spear attack)
The problem is that when you have your collision it kilss your sword, and 0,19 seconds later, it tries to kill your sword again.

Try to desactivate all the kill swords , and see if it works

If it works, try instead of kill word
For every sword on scene   
      kill sword

If this solution doesn't work, tell us, it will be a tiny little more complicated solution

SadiQ

  • Posts: 1795
1. in Enemy Fire Bullet to Actor, in the Do every firing rate event the first line should PROBABLY be If Target Actor has value and Target Actor is alive.
2. As yoplalala mentioned, in the Sword Attack behavior you could put an If sword is alive Kill sword block wherever you have a kill sword block
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

zidaxxx

  • Posts: 131
I did follow your instructions and it works.

For each group of actor "sword"
     kill self

but the problem there is that when I attack to left the animation stuck and cant move.

yoplalala

  • *
  • Posts: 1632
If it's only the attack to the left, compare it to the other attacks and try to see what's wrong. You may have mislided your disablemovement = False.

zidaxxx

  • Posts: 131
@Yoplalala i found the problem in the error.  I accidentally place the "kill actor" after the If statement and the problem is now solved.  I only have to modify one behavior for delay. in firing the spear weapon...

thank you both of you Mr. yoplalala and SadiQ for spending your time for helping a slow learner person like me to fix and solve my problem not only my problem but also my future.  You help saves me and my group for our Thesis Project.

I don't know what to give you both cuz i don't have money. but i will still gonna study more and understand the logic so that in the future i might can help too. thank you very much to both of you and other users who tried to help me too.

Thank You!