In Merqury's Sonic Physic's Guide, in the Solid Tiles section, there are a few lines of code like...

and...

How would I calculate angle? I've been using for() loops as detectors at x-10 and x+10 like the guide said, but how do I find the angle with these 2 points? Help would be greatly appreciated.

Also, on an unrelated note, how would one request a username change? Thanks.

Xsp = Gsp*cos(angle); Ysp = Gsp*-sin(angle);

and...

Xsp -= jmp*sin(angle); Ysp -= jmp*cos(angle);

How would I calculate angle? I've been using for() loops as detectors at x-10 and x+10 like the guide said, but how do I find the angle with these 2 points? Help would be greatly appreciated.

Also, on an unrelated note, how would one request a username change? Thanks.