View Single Post
  #2  
Old 09-01-2012, 11:32 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by Crow View Post
Note: This function name is terrible. I'm not good at this.
WallIntersect(x1, y1, x2, y2)

What is this? Simple! I believe it was Dusty who was requesting this before: a function to check for walls on a line. This is a GS2 implemenation, obviously, ...a hitbox that is 32x32 pixels. This is why I add 17 / 16 to the base of my onwall() checks. You can simply modify that if you need.
Pretty nifty contribution, I can see this being good for a lot of novices who don't have half a clue about maths. Good job
Reply With Quote