Search found 34 matches

by Ethan-Taylor
Mon Jun 15, 2015 4:14 am
Forum: Support and Development
Topic: Circular Cursor Lock
Replies: 8
Views: 3406

Re: Circular Cursor Lock

I would just do two circle collision checks but I'm sure that is the hacky way of doing things. Another option would just be to use atan2 and the coord of the mouse and the coord of the player to get an angle. And then just use the radius, angle,sin and cos to get the new coords at the distance nee...
by Ethan-Taylor
Mon Jun 15, 2015 12:27 am
Forum: Support and Development
Topic: Circular Cursor Lock
Replies: 8
Views: 3406

Circular Cursor Lock

Hey Guys,
I was wondering how I would make the cursor locked to a circle around my player?
So If you move your cursor around the cursor stays locked to a circle path around the player.

I should've listened to all those maths lessons XD

Anyway,
Thanks!
by Ethan-Taylor
Tue Mar 03, 2015 8:47 am
Forum: Support and Development
Topic: How to point an image toward the cursor?
Replies: 1
Views: 921

How to point an image toward the cursor?

So do I measure the angle based on x and y of my sprite (image) and the x and y of the cursor?
Also I would like it so when you press the up key the character goes toward the mouse cursor.

Also with all the keys too, so if you're pointing 90d the "A" key would make you go down.

Thanks.
by Ethan-Taylor
Fri Dec 05, 2014 2:25 am
Forum: Games and Creations
Topic: Slide - My First Love Project
Replies: 0
Views: 1391

Slide - My First Love Project

https://love2d.org/imgmirrur/0bLKAP4.png Hey, fellow friends. I'm not popular (so I don't expect you to know me), so here it is : Ethan Taylor. Yeah, yeah , yeah, you've seen my username I get it :crazy: Well enough of that let's get to the point: SLIDE! This here is a free 2 player local split scr...