Author: Conarnar
Category: Player
Danmakufu Version: ph3
Tags: youmu
Last updated at: July 29 2018, 08:31 PM
File Size: 1.58 MB
Downloads: 160

@Finalize doesn't work in player scripts mkm why.

This is a simple Youmu player script. Instead of always shooting upwards, the shots are aimed towards the mouse cursor. However, since it is difficult to use the arrow keys and mouse at the same time, you can also control the player using the WASD keys. Left click is shoot and right click is bomb. Additionally, the bomb does slightly more damage the faster you move your mouse cursor.

This script uses common data to save mouse positions, mouse click state, and WASD key states. Since @Finalize doesn't ever get called in player scripts, the common data is saved every frame instead. This has potential to cause lag but I haven't experienced it so far (with the current method of doing it). During replays, another mouse cursor will be visible to show where it was during gameplay.