PSP Hacks - Forums

Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-23-2009, 04:45 AM
Davasaurous Davasaurous is offline
PSP Newbie
 

Join Date: Aug 2009
Posts: 1
Davasaurous Has a Beginner Reputation
Default Really basic animated hello world, not working

Code:
StartNotHit = true
i = 0
GoingLeft = true

while StartNotHit do
	pad = Controls.read()
	if pad:start() then StartNotHit = false end
	screen:clear()
	
	screen:print(200 + i, 135, "Hello World", Color.new(0,255,0))
	if GoingLeft == true then i = i + 1 end
	if GoingLeft == false then i = i - 1 end
	if i == 100 then GoingLeft = False end
	if i == 1 then GoingLeft = True end
	
	screen:flip()
end
I have no idea what's wrong with it. Hello World just sits there not moving :\

Obviously I fucked up my logic or something. Any help?
Reply With Quote
 

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©