Plazma Burst 2 game-like mouse movement

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Andrej Poženel - SDT


I am trying to make 2d sidescroller platformer shooter game in pure GDScript instead of C#, at which i am new.

I know that there are tuts, I have read them, but they aren’t helping me much with the current issue, that is nowhere to be seen described.

The game is copying the famous “Plazma Burst 2” game.
( )

I want to copy the mouse movement, aim and shooting as it is seen in game, but i cannot figure it out.

I’ve searched the entire web for solution, from these QA, to Facebook group, … and still no clue.

How would i implement this? How exactly? How will the script look like?

:bust_in_silhouette: Reply From: flurick

What do you have so far?
This should be enough for aiming with the camera enter image description here


yes i’ve just started with this project

I don’t have much, just a placeholder sprites, test scene with static body + collisionshape2d + sprite (that makes up floor) and player scene with same hierarchy except it is kinematicbody2d instead of staticbody2d and added camera2d with “current” enabled

In fact i have very basic player movement implemented

here is the project compressed in ZIP format of the things i have

Andrej Poženel - SDT | 2019-09-03 16:14