Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Rotate a Sprite Lite, for GM7
Unspecified
exenefevex
Posted: Jun 19 2009, 08:02 PM
Quote Post


Regular
[*][*][*]

Group Icon
Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07

Status: (0d) [--]


Updated 29 August 2009.

GameMaker Lite allows you to rotate the entire view and layer the rotated content on top of another view. This allows you to stretch and rotate large sprites without calling draw_getpixel.

Note, however, that the number of rotated sprites allowed onscreen with this method is extremely limited. You will also be unable to use backgrounds (though the example program shows you one possible workaround).

Updated file includes more detailed comments and is more consistent with the rest of GM's rotation functions.

Download (68KB)

This post has been edited by xn--e5x on Aug 29 2009, 03:02 PM


--------------------
PM
Top
Australia
mirror
Posted: Jun 19 2009, 08:16 PM
Quote Post


Derp
[*][*]

Group Icon
Group: Members
Posts: 317
Member No.: 6148
Joined: 3-April 09

Status: (0d) [--]


Awesome work, this is very useful!


--------------------
PMEmail PosterMSN
Top
United States
RetroXYZ
Posted: Jun 19 2009, 08:20 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


So what does this do, put a sprite in its own view and rotate the view to rotate the sprite?

Sorry, but this code isn't commented at all, and it's difficult to see what points to what.
PMEmail PosterMSN
Top
Unspecified
mrmario
Posted: Aug 29 2009, 02:26 PM
Quote Post


Wrapped In black..too strong..too strong...
[*]

Group Icon
Group: Members
Posts: 502
Member No.: 6324
Joined: 18-June 09

Status: (0d) [--]


That was cool.


--------------------
PMEmail Poster
Top
Spain
Sergeant DeeY
Posted: Aug 29 2009, 02:28 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


QUOTE (mrmario @ Aug 29 2009, 08:26 PM)
That was cool.

Why did you bumped this?


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
Unspecified
mrmario
Posted: Aug 29 2009, 02:36 PM
Quote Post


Wrapped In black..too strong..too strong...
[*]

Group Icon
Group: Members
Posts: 502
Member No.: 6324
Joined: 18-June 09

Status: (0d) [--]


Didnt look at the time it was posted. i thought since it was on page 1, it was fairly new


--------------------
PMEmail Poster
Top
Unspecified
exenefevex
Posted: Aug 29 2009, 02:57 PM
Quote Post


Regular
[*][*][*]

Group Icon
Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07

Status: (0d) [--]


Last post was June 19th, so it should have been on page two (gasp). How many topics are you listing per page?

Oh, and anyway, I recently did some tidying up of the rotating code which, among other things, reversed the direction of rotation to make it consistent with GM's other functions. I'm gonna check to see what version is being linked to and update it if necessary. Stand by. New version is up.

This post has been edited by xn--e5x on Aug 29 2009, 03:01 PM


--------------------
PM
Top
United States
RetroXYZ
Posted: Aug 29 2009, 03:05 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


QUOTE (xn--e5x @ Aug 29 2009, 03:57 PM)
Last post was June 19th, so it should have been on page two (gasp). How many topics are you listing per page?

For it to be on page two, he'd need five posts per page. I use fifty.
PMEmail PosterMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0439 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.89 ]