Hi guys!
Is it possible to rotate the screen?
For example, I press "Right" and the whole level starts to rotate to the right?
Tell me, please! ))
---
Sorry for my english :blush:
Printable View
Hi guys!
Is it possible to rotate the screen?
For example, I press "Right" and the whole level starts to rotate to the right?
Tell me, please! ))
---
Sorry for my english :blush:
Hi
use perspective extension ( as far as i know )
Unfortunately, I can not do the screen rotation via an object "Perspective" ((
You will probably have to fake it, by moving and rotating every object around the center of the screen, using some trigonometry.
There are two downsides to this:
1.) It's not very easy.
2.) *Everything* has to be active - you can't use any background objects, because they can't be moved/rotated at runtime. That means it's going to be less efficient, and may require HWA.
Anyway, here's a quick example:
http://cid-b1e7ee094271bbda.office.live.com/self.aspx/Public/LevelRotate.mfa
The other alternative, and I have no idea if this is even possible, would be to apply a rotation pixelshader to the layer itself. If such a thing is possible, that would be the way to go (unless you are making a Flash game or something, and can't use HWA).
Thank you! But of course I would like it to be easy. For example, that it was setting the level of ...
Well, there are some things that are not easy to do, and consume time if done properly. Also, sometimes there are no examples and have to be accomplished by the trial and error method.
Marv
Pixelthief knows at least one way to do it, so it is doable with full fps. However, as I have understood it, it is not in any way an easy accomplishment. I believe it involves having some sort of screen-sized overlay diplaying the actual level (which is not rotated) rotated.
Check out his current project Asunder if you wan't to see it in action--> http://www.create-games.com/project.asp?view=main&id=1617
I don't think Pixelthief rotates the frame; his levels are all active objects that rotate together.
Erm, Pixelthief simply uses a pixel shader that can rotate an image ;)
He posted them here:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=187834#Post1878 34
You sure?
I'm pretty sure that the "real" level isn't rotated, only an image of it. Perhaps PT wouldn't mind to clarify this issue.
Edit: A tad late with my reply there.
Oh yeah I'm a little late. You should use that pixel shader, its somewhat optimized over the other rotation shaders in the packages here. Just apply it to the entire layer, and it will rotate everything.
However, there are some logic requirements. The image of the level will rotate, but is displayed in the window. Without any large edges, you will see the black space from outside of the window rotated. In order to work around this, you need to make sure that your game is displayed in a window that is in the square circumscribed by the circle circumscribed in the virtual frame size.
So for example, if your game displays in a 512x512 frame, you'd need to make your window size 362x362
Thank you! And at the expense of iOS exporter, this function will work in iOS application?
Mac operating systems cannot run directX applications- you'd need to write your own shader for whatever they use, but it would be virtually identical. An alternative is anything in GLUT, and again their shaders are identical too
Whoops, I stand corrected then ;)