trying to rotate the camera will make it look wierd, because of the camera aspect (difference between width/height res)
1: You're offseting the sprite to the center, so the position should be:
Quote: "sprite 125,Screen Width()/2,Screen Height()/2,125"
2: The sprite is rotated 90 degrees, so when you resize the sprite, it should be:
Quote: "size sprite 125,screen height(),screen width()"
2 is the problem: the aspect
everything will look distorted horizontally.
To fix this, use the command "set camera aspect", with the screen width / screen height. Look this example:
Sync On
Sync Rate 120
Make Object Cube 1,30 `test object
SW# = Screen Width()
SH# = Screen Height()
m# = SW# / SH# `NORMAL ASPECT
n# = SH# / SW# `ASPECT 2: Actual screen height will be the new width, and actual screen width will be the new height
set camera to image 0,125,screen width(), screen height()
sprite 125,Screen Width()/2,Screen Height()/2,125
offset sprite 125, sprite width(125)/2, sprite height(125)/2
do
cls
print Camera Aspect()
if spacekey()
if sprite angle(125)<>90
rotate sprite 125,90
size sprite 125,screen height(),screen width()
Offset Sprite 125,sprite width(125)/2, sprite height(125)/2
Set Camera Aspect n#
else
Rotate Sprite 125,0
size sprite 125,screen width(),screen height()
Offset Sprite 125,sprite width(125)/2, sprite height(125)/2
Set Camera Aspect m#
endif
while spacekey() : endwhile `wait release spacekey
endif
yRotate Object 1,Object Angle Y(1)+1
sync
loop
EDIT: LOL, never tryed rotating the view.. cool!