Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mh-cz/GameMaker-4point

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
44 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

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.