R
Roby1kenoby

Trouble with extending

I don't understand why i extend my IceFist from the bullet.gd script, i set it's speed to 10 (only to test it) and when i play the scene it goes as fast as the basic fire bullet.


Also, the particles are not emitting on destroy event.


Can someone help me?

  • a
    andrewjhaugen replied
    Sorry to have you do this Roby but could you share your project? By having access to opening up scenes and scripts I will be able to help you a lot quicker
  • R
    Roby1kenoby replied

    Hi Andrew. Here it is the link

    https://drive.google.com/file/d/1PjF3RjcDD5fZPSx4XkdyWjsmtiQez2OD/view?usp=sharing

    Thank you as always for the help.



  • R
    Roby1kenoby replied

    Ok, i think i've found the problem.

    We have two speed parameters, one for the Spell, one for the Bullet.

    The shoot function use the Speed parameter of the Spell. I was changing the Bullet Speed.

    Why are there 2 Speed parameters for the same thing?
    Also, i've debugged the particles effect. If i play the game and go in debug mode, when the bullet hits a wall, the particles fire up.

    If i'm not in debug mode, i don't see them.



  • R
    Roby1kenoby replied

    I've also worked out (reading the solution) how i should go about for the particles.

    Calling queue_free didn't give them the time to play the animation, so that's solved.

  • a
    andrewjhaugen replied

    Hey Roby sorry I couldn't get back to you sooner. I just wanted to follow up with you and see if there were any other outstanding issues that you needed help with?

  • R
    Roby1kenoby replied

    No, i'm good, i'm slowly trying to complete the extra challenges for this lesson before continuing with the next one.