Zeige Ergebnis 3.991 bis 4.020 von 10238
Lua Programming Help Thread
This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; what is the code to exit back to luaplayer...
-
11-08-2006, 01:54 PM #3991Designs

- Registriert seit
- Jul 2006
- Ort
- Canada
- Beiträge
- 1.395
- Points
- 14.040
- Level
- 76
- Downloads
- 0
- Uploads
- 0
what is the code to exit back to luaplayer

-
11-08-2006, 03:06 PM #3992QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Thisll make it exit back to luaplayer when you place it in your main loop and press start:
if pad:start() then
break
end
Also you must be in your index.lua for that to work, not in a game.lua or other already dofiled file.
-
11-08-2006, 04:17 PM #3993QJ Gamer Blue
- Registriert seit
- Aug 2006
- Ort
- Missouri
- Beiträge
- 451
- Points
- 6.041
- Level
- 50
- Downloads
- 0
- Uploads
- 0
that gives a NULL error. and if its above the loop it says no loop to break end
Zitat von -TacticalPaper-
-
11-08-2006, 04:21 PM #3994QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
It has to be in your loop because its BREAKing your loop. And all you need to do is between the last bit of your code and screen.waitVblankStart() screen.flip() end add in:
if pad:start() then
break
end
If it gives you a null then it means you havent defined pad = Controls.read()
-
11-08-2006, 04:52 PM #3995QJ Gamer Blue
- Registriert seit
- Aug 2006
- Ort
- Missouri
- Beiträge
- 451
- Points
- 6.041
- Level
- 50
- Downloads
- 0
- Uploads
- 0
that works, thanks :)
-
11-08-2006, 05:04 PM #3996QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Youre welcome
-
11-08-2006, 05:33 PM #3997QJ Gamer Blue
- Registriert seit
- Aug 2006
- Ort
- Missouri
- Beiträge
- 451
- Points
- 6.041
- Level
- 50
- Downloads
- 0
- Uploads
- 0
ok. it says null still and after about 1 or 2 seconds it will reset. is there any way to keep it from sayin that.
System.usbDiskModeActivat e()
white = Color.new(255,255,255)
menuBackground = Image.load("menuBackgroun d.png")
while true do
pad = Controls.read()
screen:blit(0,0,menuBackg round)
screen.flip()
screen.waitVblankStart()
if pad:start() then
break
end
end
-
11-08-2006, 06:09 PM #3998QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Zitat von Cheez Pirate
Try changing your code to this:
Code:System.usbDiskModeActivate() white = Color.new(255,255,255) menuBackground = Image.load("menuBackground.png") while true do screen:blit(0,0,menuBackground, false) pad = Controls.read() if pad:start() then break end screen.waitVblankStart() screen.flip() end
-
11-08-2006, 07:32 PM #3999QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Yea you need to put it before the watvblank and flip. Nothing should go between screen.waitVblankStart() screen.flip() and end except for variable concerning stuff like oldpad = pad.
-
11-08-2006, 07:34 PM #4000I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Yayy, I got the 4000th post in this thread. Yayy.

-
11-08-2006, 07:36 PM #4001QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
And I got the postsbefore and after 4000. Ok im gonna stop before i get in trouble for spamming.
And thus is the post that by the board view is # 4000.
-
11-09-2006, 12:22 PM #4002Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I wanna try and incorporate a small little animation to my charcter in my lua app . How would i go about saying when pad is held on left and then play the animation ?
-
11-09-2006, 12:38 PM #4003QJ Gamer Platinum
- Registriert seit
- Dec 2005
- Ort
- h0000000rj
- Beiträge
- 12.867
- Points
- 57.528
- Level
- 100
- Downloads
- 0
- Uploads
- 0
What?
[I fail @ life]
-
11-09-2006, 12:50 PM #4004Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I want my player to do a certain action when i double tap left on the d-pad. How would i go about doing this ?
-
11-09-2006, 02:16 PM #4005QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Set a tick count or timer in the game, get the current tick count or value of the timer when you first tap left, then get it again when you tap left again. Check the difference of the values and if it is less then a certain value, perform the action.
Also you have to be able to detect the difference between a tap and when a direction is held down.
-
11-09-2006, 05:21 PM #4006Designs

- Registriert seit
- Jul 2006
- Ort
- Canada
- Beiträge
- 1.395
- Points
- 14.040
- Level
- 76
- Downloads
- 0
- Uploads
- 0
how could i implement a keyboard into my app

-
11-09-2006, 05:23 PM #4007I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
There's a pre-made keyboard in the download section. I think it's called Danzeff's OSK or something.
Zitat von yoyomacy

-
11-09-2006, 05:24 PM #4008Designs

- Registriert seit
- Jul 2006
- Ort
- Canada
- Beiträge
- 1.395
- Points
- 14.040
- Level
- 76
- Downloads
- 0
- Uploads
- 0
but thats for C i was just looking at that

-
11-09-2006, 05:25 PM #4009Rock Star

- Registriert seit
- Aug 2005
- Ort
- CT| FW: 4.01 M33-2
- Beiträge
- 11.844
- Points
- 70.899
- Level
- 100
- Downloads
- 0
- Uploads
- 0
I haven't checked this out, but it says it's for Lua: http://ps2dev.org/news/Danzeff_keybo...PSP_Lua_Player
Zitat von yoyomacy

-
11-09-2006, 05:26 PM #4010Designs

- Registriert seit
- Jul 2006
- Ort
- Canada
- Beiträge
- 1.395
- Points
- 14.040
- Level
- 76
- Downloads
- 0
- Uploads
- 0
oh sweet, there are 2 versions, C and LUA, thats cool, if anyone knows how to actually put it in my app please tell

-
11-09-2006, 05:42 PM #4011I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Being as experienced as you say you are, you should be able to do that. At least with help from the instructions.
Zitat von yoyomacy

-
11-09-2006, 07:34 PM #4012Designs

- Registriert seit
- Jul 2006
- Ort
- Canada
- Beiträge
- 1.395
- Points
- 14.040
- Level
- 76
- Downloads
- 0
- Uploads
- 0
i did it word for word and it didnt work
Zitat von Access_Denied
anyone?
nobody?
-= Double Post =-
someone must know thisGeändert von yoyomacy (11-09-2006 um 07:34 PM Uhr) Grund: Automerged Doublepost

-
11-09-2006, 08:17 PM #4013QJ Gamer Platinum
- Registriert seit
- Dec 2005
- Ort
- h0000000rj
- Beiträge
- 12.867
- Points
- 57.528
- Level
- 100
- Downloads
- 0
- Uploads
- 0
... yoyomacy? experienced? lol. He told me he's been programming for less than two weeks now.
[I fail @ life]
-
11-10-2006, 04:55 AM #4014I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Well, I thought he had enough experience. After all, he made Text2Phone and fBrowser.
Zitat von FreePlay

-
11-10-2006, 05:01 AM #4015QJ Gamer Bronze
- Registriert seit
- Sep 2006
- Ort
- Denmark
- Beiträge
- 664
- Points
- 9.316
- Level
- 64
- Downloads
- 0
- Uploads
- 0
Well... I just started at LUA, and i followed whitehawk's turtorial at
psp-programming.com
So what now? I only know how to make a loading screen, and load screenshots. EDIT: Also load sounds.
EDIT: (I'm currently using Luaplayer 19 and script.lua file.)
I don't even know how to move an object if i want to make a ping pong game.
I someone could give me a link, or help me on MSN, that would be much appreciated.My PSP Projects:
___________________
None.
-
11-10-2006, 10:38 AM #4016Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Gameo i'll help

-= Double Post =-
looks like it's tutorial time. Where should i go ?
Zitat von head_54us
Geändert von eldiablov (11-10-2006 um 10:38 AM Uhr) Grund: Automerged Doublepost
-
11-10-2006, 11:57 AM #4017lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
Wow, Thats it? Loading media isnt really hard, Just one line.....
-
11-10-2006, 12:57 PM #4018Banned for LIFE
- Registriert seit
- Oct 2006
- Ort
- East London, England
- Beiträge
- 2
- Points
- 18.744
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Any links to the tutorial about animating your player when holding or double tapping a button. I really need a step by step. It's hard having no knowledge in Lua
-
11-10-2006, 01:06 PM #4019lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
If you need tuts try here,
http://www.evilmana.com/tutorials/
-= Double Post =-
Or even here,
http://forums.qj.net/f-psp-developme...ets-63115.html
These are great!Geändert von Anti-QJ (11-10-2006 um 01:06 PM Uhr) Grund: Automerged Doublepost
-
11-10-2006, 02:12 PM #4020Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
i would try animation lib 3. but, you need a better understaanding of lua first..
--------------------------------------------------------------------------------------


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum