![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on multiple pictures controlled by 1 button?? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; k i am using lua and i was wondering if anyone knows how to make it so your pictures can ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Developer
|
k i am using lua and i was wondering if anyone knows how to make it so your pictures can move by the same button and at any point by p[ressing a button it goes back 1 and then if you click right it goes back to the picture and you can continue i hope you know what i mean
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#2 |
![]() ![]() Developer
|
ya heres how u do it:
if pad:right() then x=x+1 x2=x2+1 end if pad:left() then x=x-1 x2=x2-1 end elseif pad:up() then y=y-1 y2=y2-1 end if pad:down then y=y+1 y2=y2-1 end screen:clear() screen:blit(x, y, image) screen:blit(x2, y2, image2) screen.flip() --You have to obviously load the images first and define them as a var like "image" and --make a while loop
__________________
![]() F.A.L.O?
|
|
|
|
|
|
#3 |
![]() ![]() Developer
|
k thanks
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
![]() |
| Tags |
| button , controlled , multiple , pictures |
| Thread Tools | |
|
|