Guilty Sparks Heavy Poster
Posts : 154 Join date : 2008-01-05 Location : USA East Coast
| Subject: Mirrors Thu Jan 31, 2008 2:48 am | |
| is there any way to make mirrors in game maker without having huge drawing codes? | |
|
slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: Re: Mirrors Thu Jan 31, 2008 4:11 am | |
| | |
|
Guilty Sparks Heavy Poster
Posts : 154 Join date : 2008-01-05 Location : USA East Coast
| Subject: Re: Mirrors Sun Feb 03, 2008 3:52 am | |
| ok thanks (Im hoping for Phantom to respond LOL! I didnt even notice untill now) | |
|
slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: Re: Mirrors Sun Feb 03, 2008 6:57 am | |
| lol. yea phantom would defiantly know how to make GOOD mirrors. you could always just draw objects on the other side of a window. | |
|
Phantom107 Admin
Posts : 206 Join date : 2008-01-03 Location : The Netherlands
| Subject: Re: Mirrors Sun Feb 03, 2008 1:26 pm | |
| I agree with Slayer 64. The best way to mirrors in GM is just to place the same objects on the other side. True mirrors are possible in GM, but they consume so much there isn't any processing for the actual game left (!). True mirrors would involve this:
1) Draw a projection from the camera's position. (so you set the camera to what the mirror would should) 2) Capture the screen using background_create_from_screen(...). 3) Create a texture from the captured screen. 4) Draw that texture on the mirror.
Now the problem is calling background_create_from_screen(...) every step just takes up way to much processing time. | |
|
Guilty Sparks Heavy Poster
Posts : 154 Join date : 2008-01-05 Location : USA East Coast
| Subject: Re: Mirrors Sun Feb 03, 2008 3:58 pm | |
| hehe ok, but the problem with that is it wont reflect the player Unless I make it a 3d character who getrs deleted and recreated every time you walk past a mirror... And no I really cant have it take up the whole processer time, its like a bathroom with blood on the floor, not the most important part of the city Im making | |
|
Phantom107 Admin
Posts : 206 Join date : 2008-01-03 Location : The Netherlands
| Subject: Re: Mirrors Sun Feb 03, 2008 4:44 pm | |
| I don't see why you would have to delete and recreate the character. Can't you just reflect the draw event in the mirror? | |
|
Guilty Sparks Heavy Poster
Posts : 154 Join date : 2008-01-05 Location : USA East Coast
| Subject: Re: Mirrors Sun Feb 03, 2008 7:02 pm | |
| | |
|