Fangames > Programming Questions
Flip/Mirror views involving the cam object. (Klazen's Studio Engine) (RESOLVED.)
TheGamerGuy500:
This screenie should tell you how I set it up, of course with me blindly thinking that this would, I dunno, WORK?
Anyway, I'd like some assistance with making this work if you would please...
You might have to just visit https://prntscr.com/a3q05z to see a zoomed in version of it.
The image should tell you all you need to know.
"Lots of removed spaces so just" means I just put a lot of spaces to hide any irrelevant code. Forgot to finish typing that.
I've also tried using surfaces and that works UNTIL YOU SHIFT THE CAMERA and then everything goes black. In fullscreen, it moves the whole camera an entire screen to the left or right. In the normal window, it's just black. https://prntscr.com/a3qduo
lawatson:
you might have to use surfaces. draw the view to a surface, then draw the surface with xscale -1.
TheGamerGuy500:
Just added that to the post, it doesn't work after you shift the camera...
TheGamerGuy500:
--- Quote from: lawatson on February 15, 2016, 03:56:22 PM ---you might have to use surfaces. draw the view to a surface, then draw the surface with xscale -1.
--- End quote ---
I had used the application surface method, and the manual says surfaces are like unstable when you do other things with the computer.
If you could supply me with some kinda fail-proof code for drawing a view-only surface with this engine, I'd appreciate that.
patrickgh3:
Here's how I would do make a camera object to do this using views: https://klazen.com/gm/07Q.
However, now I realize it might be simpler just to redraw the application surface flipped. So either do the solution above or the solution below, but not both obviously.
In Studio, add this snippet to a Draw GUI End event:
--- Code: ---if global.mirror {
draw_surface_ext(application_surface,800,0,-1,1,0,c_white,1)
}
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version