Surfaces in GM Studio !
#1
Posted 22 June 2012 - 07:57 AM
I think we need experts to look to this problem,
Please go to this post :
http://gmc.yoyogames.com/index.php?showtopic=475556&st=0&gopid=4001451&#entry4001451
this is one of the best blur effects which uses surfaces in GM, and if you open it
in GMS, nothing happen.because screen_redraw() function in obsolete now in GMS.
is there any way to get the same result in GMS ?
FHD
#2
Posted 22 June 2012 - 08:33 AM
yes, use a draw-event for this. You'll have to manage the draw events more closely though (as you wouldn't wish to draw over something else etc).Hi every one !
I think we need experts to look to this problem,
Please go to this post :
http://gmc.yoyogames.com/index.php?showtopic=475556&st=0&gopid=4001451&#entry4001451
this is one of the best blur effects which uses surfaces in GM, and if you open it
in GMS, nothing happen.because screen_redraw() function in obsolete now in GMS.
is there any way to get the same result in GMS ?
FHD
#3
Posted 22 June 2012 - 06:35 PM
So the better thing to do would be to have everything drawn to a surface in the first place. You can set the surface as the draw target using surface_set_target(id), or you can have the view's contents copied to the surface by assigning view_surface_id[0] to a surface's id.
Edited by Lune, 22 June 2012 - 06:36 PM.
#4
Posted 22 June 2012 - 07:03 PM
What I do is just with (object) {draw whatever you need here}, it should be faster than screen_redraw(), the only problem is that you need to remember to change both the with()'s and the draw event from the objects whenever you change them..
#5
Posted 23 June 2012 - 06:54 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











