![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Help with lua within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi all, Can someone tell me where if there is any way to make the image angle rotate in lua?? ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#4 |
![]() |
This would be the simplest way. But that would make the hardware work more, add more to memory, and make this person work more.
In the latest Luaplayer HMv2 you do it like jackrunner says, but there is a bit more. Code:
--Load the image you want to rotate
TestI = Image.load("test.png")
--Loop
while true do
--Start Graphics Process
screen.startDraw()
--Blit your image
Image.blit(100,100,TestI)
--Rotate your image
Image.rotate(0,0,180,TestI)
--End Graphics Process, end loop, flipscreen
screen.endDraw()
screen.flipscreen()
end
Image.rotate(X,Y,Rotation in Degrees, Image File) When you use it whatever is in X,Y will be the images new X,Y. The next variable is controls rotation so 180 degrees will turn the image upside down. The final variable is your image file, in the example it was simply TestI. Keep in mind you must have the image blitted or it will freeze your PSP. |
|
|
|
|
|
#5 |
![]() Enter Custom Title
|
Work more. Not really. If there function for it is there then use it but if your not using HMv2 then you might as well do it yourself.
|
|
|
|
|
|
#6 | |
![]() |
Quote:
And when i put your script in it it dont works it gives this error rotate.lua:8 attempt to call field 'startDraw' (a nil value)... |
|
|
|
|
|
|
#7 | |
![]() |
Quote:
I do not have a PSP capable of running the luaplayer your using. Merick of evilmana shows us how to do this function in GU. http://www.forums.evilmana.com/index.php?topic=676.0 Last edited by Xteaph-N; 06-02-2009 at 04:08 PM.. |
|
|
|
|
![]() |
| Tags |
| lua |
| Thread Tools | |
|
|