HELP ! about Controls

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
justatest
Posts: 10
Joined: Mon Dec 19, 2005 5:56 pm

HELP ! about Controls

Post by justatest »

while i use pad:up down left right , i hope to get the 'one press , and just move one time ' ,
but now while i press a direction button , it do all thelogic things in the scope looply, what should i do ? help !!!! much appreciate !

my code is like this :

if pad ~= oldPad then
if pad:left() then
........
end
oldpad = pad
end
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Re: HELP ! about Controls

Post by Bob535 »

justatest wrote:
if pad ~= oldPad then
if pad:left() then
........
end
oldpad = pad
end
Need to change the oldpad = pad to oldPad = pad, captialization is important.
justatest
Posts: 10
Joined: Mon Dec 19, 2005 5:56 pm

Post by justatest »

>_<.......

thx . >_<......
Post Reply