Basically, I’m trying to make a beam shoot from the player and auto aim towards a object (enemy), I’ve tried scaling and that doesn’t work, since flowlab
Scales both sides it make the beam shoot in both directions. Can please anyone help? This is a pretty large part of my game, help!
Not at a computer rn, but this should help
Basically it just adds half the stretch distance so it’s stationary, if you’re doing it at different angles, you’ll also need to do some basic Cos and Sin to adjust for that
I don’t really know how I could use this…
Here is a example game I made.
You should look in the sprite, and the wall objects.
@CodeAlpaca yo so I found out how to use the code but I need help making the beam rotate. Pls help?
You need help with the aiming portion of it?
I already tried that.
What was wrong with it?
The bundle that @CodeAlpaca gave me isnt compatible, it makes the beam do some weird stuff. let me give link.
Does the Beam Need to have collisions in it?
It doesn’t have collision…
https://flowlab.io/game/play/2565149
It’s private.
On the first level look into the “characters” folder and select goku, the other code is also inside of the “beam stuff” folder.
Public.
Look in the “special stuff” for goku.
So technically, this bundle was made to stretch the sprite between to coords like a selection tool, not made for this kind of implement. You would have to convert it.
What did you do?
I put the player coords into the bundle, that CodeAlpaca gave you. It does not work for a beam, yet though.
I’m not sure why you did that. try play testing it normally. press f and e and hold them until the beam comes.