I am recreating “Doom” on Playcanvas, and I’m looking to add a gun fire effect true to the original version.
I have created a script that is supposed to enable a sprite in front of the player’s gun, but it gives me an error. Does anyone have any idea of what’s wrong, and what I should do to get this to function?
@RumaiIndustries It looks like from the screen shots that the sprite you are trying to enable is a child of the camera entity of which the script it is attached to and not a attribute of the this.entity itself. I don’t know if this will help you or not but you could have a look at how I did this here: