|Topic was automatically imported from the old Question2Answer platform.
I’m working on a title screen and was wondering how I could smoothly move a sword icon based on mouse position on the screen.
Anybody know what I should do to acheive this, I only want to move it a bit (10-35 units along the x-axis).
Bernard Cloutier | 2020-09-29 15:55
I’m not looking for player movement, I want to create an effect where a sword icon moves back and forth in the x-axis only for the title screen based on mouse position.
Moldor2 | 2020-09-29 21:26
The link shows how to get mouse position and how to use that to move a player. Simply apply the same kind of logic on your sword instead of the player.
Bernard Cloutier | 2020-09-30 13:33