Hi there!
I have this character player with a "Magical Staff". I want to shoot a continuous laser beam.
I know that I have to spawn the laser at the press of a button.
Can anyone tell me how to do this?
Hey there, first of all, what do your laser sprite looks like? Does it need to go in straight line or with angle? By continuous you mean it must travel all the way to the windows border?
It's just a 4 pixels line and I need it to go all the way straight to the all screen only in the X direction.
Develop games in your browser. Powerful, performant & highly capable.
I forgot to say that the ideia is keep pressing a key or button while shooting the "Continuous" laser at the X direction.
Oh okay, so for example in mouse direction? Or any X? And if you release the key the laser will go away right? Like a spray
Sorry, forgot to say, again, this is like a platform game. The laser only goes to left or right in the X Axis.
If I release the key or button. The laser should stop!
This what I have. I just need a continuous beam while I'm pressing the shoot button.
Maybe try this laser example
editor.construct.net
Thank you WackyToaster. This was what I really need it!
Okay I see now, and it should be stopped by solids I guess?
Edit : looks like you found your solution ~
Yes, Thank you Tomycase. Still working on it!