Skip to content

A four point image manipulator for GameMaker 2.3+

Notifications You must be signed in to change notification settings

mh-cz/GameMaker-4point

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 

Repository files navigation

4point

A four point image manipulator for GameMaker 2.3+

  • No shaders
  • No 3D stuff

How to use

Call fourpoint_init() when the game starts

Create:

fp = new fourpoint(x1, y1, x2, y2, x3, y3, x4, y4, tex, segments*, perspective*, z*)

Update:

fp.update(x1*, y1*, x2*, y2*, x3*, y3*, x4*, y4*, tex*, segments*, perspective*, z*)

Draw:

fp.draw()

Cleanup:

fp.destroy()

  • x1, y1 - point 1
  • x2, y2 - point 2
  • x3, y3 - point 3
  • x4, y4 - point 4
  • tex - texture, sprite_get_texture(..), surface_get_texture(..) etc.
  • segments - the more, the better the quality, [optional, default is 5]
  • perspective - faked perspective, [optional, default is true]
  • z - depth, [optional, default is object's depth]

All of these arguments are optional in the update() function