Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Example / Listing] You CAN Use D3D in 2D Mode  (Read 2211 times)

0 Members and 1 Guest are viewing this topic.
[Example / Listing] You CAN Use D3D in 2D Mode
« on: May 07, 2006, 07:36:55 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
Again, I didn't make a tutorial (but I might), but you can use the D3D commands in Game maker in 2d mode. Plot this into the draw event and see what happens when you place it in an empty room:

direction += 2;
d3d_transform_add_rotation_z(direction);
d3d_transform_add_translation(x,y,0);
draw_line(20,20,120,120);
d3d_transform_set_identity();

Viola! And no need to use lengthdir_x and stupid crap.

Other things in d3d can be used in 2d mode also. Fog is a useful one.

Just showing something many people don't know.
« Last Edit: February 24, 2012, 05:57:35 pm by Niek »
Logged
Re: You CAN Use D3D in 2D Mode
« Reply #1 on: May 07, 2006, 07:54:15 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 150
I'm not terribly proficient with GM; however, based on your previous work, I'm willing to bet that this is a great trick. =)

It must be said that I'm quite jealous of those of you who use GM; right now, I'm adding 3D acceleration to my engine for translucent/alpha-mapped sprites, and it's taking much longer than I had guessed it would. -_- That, and extending my base sprite class to use D3D when neccesary is wearysome.

Still, I'd say that the effect is worth it: check out those lovely target effects! Green for allies, blue for NPCs, and red for enemies.
Logged
Re: You CAN Use D3D in 2D Mode
« Reply #2 on: May 07, 2006, 11:10:42 am »
  • =/
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2284
Not amazing but pretty cool. alot of people use this kinda crap for gta games.
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.108 seconds with 43 queries.