Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- point_dist=point_distance(mouse_x,mouse_y,mouse_prevx,mouse_prevy)
- if (point_dist>=20) {
- if (mouse_x<x) {
- view_angle[0]-=point_dist;
- }
- if (mouse_x>x) {
- view_angle[0]+=point_dist;
- }
- mouse_prevx=mouse_x;
- mouse_prevy=mouse_y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement