Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
0
Members

x and y components from Vector2?

A topic by Gresh1234 created Sep 06, 2017 Views: 386 Replies: 1
Viewing posts 1 to 2

I'm pretty new to TypeScript (and programming in general), and I'm having a hard time using getMouseDelta and trying to apply it to player rotation. Is there a way to get the x and y components from the vector? I couldn't figure it out :c

Solved it. "Sup.Input.getMouseDelta().x" and "Sup.Input.getMouseDelta().y" did the job.