Seite 12 von 342 ErsteErste ... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 62 112 ... LetzteLetzte
Zeige Ergebnis 331 bis 360 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; any one know how to rotate an image only 1 degree instead of 90?...

  
  1. #331
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Question

    any one know how to rotate an image only 1 degree instead of 90?



    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  2. #332
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    any one know how to rotate an image only 1 degree instead of 90?
    you'd have o do a math code i guess

  3. #333
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Unhappy

    well, iknow that but i think i might look at the 90degree one and tweak it a little bit but if u kno just tell me

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  4. #334
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    well, iknow that but i think i might look at the 90degree one and tweak it a little bit but if u kno just tell me
    if i knew, i would've told you, but i don't, sorry

    i don't really have the need to rotate pics

  5. #335
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von c5cha7
    Hmm.
    I Would actually like to know how to make a sidescrolling background.
    That would be a nice addition to my game lol.
    But barrier's would still be nice :icon_bigg
    i got a sidescrolling bg, it's quite easy, and barriers don't seem to hard either, i'll make an example for ya

  6. #336
    QJ Gamer Blue
    Points: 5.902, Level: 49
    Level completed: 76%, Points required for next Level: 48
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Beiträge
    395
    Points
    5.902
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Since I wasn't able to figure out how to post my code here without getting an reply error, if anyone could assist me by looking at this thread at PSPLua and replying here to help me. Also if anyone has any sidescrolling demos, animation demos, especially with animating characters to jump with one command, run with another, and getting multiple functions like time to run while an animation is going, I would be eternally grateful!

    http://psplua.com/modules/newbb/view...id=33&forum=18

  7. #337
    Points: 4.437, Level: 42
    Level completed: 44%, Points required for next Level: 113
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Beiträge
    34
    Points
    4.437
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    how do i make the backgroud black please

  8. #338
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    screen:clear()

  9. #339
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    better than making 60 pics with 1 degree diferent

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  10. #340
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    better than making 60 pics with 1 degree diferent
    true, real true

  11. #341
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Angry

    how do i load a file if my cursor goes over a certain pixel?

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  12. #342
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Is there a way to control two cursors, one with the directional pads and one with the X, O, []... buttons at the same time so that you can play twoplayer stuff? And if so, can it be made using functions?
    /Lingon =)

  13. #343
    QJ Gamer Blue
    Points: 5.114, Level: 45
    Level completed: 82%, Points required for next Level: 36
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Beiträge
    152
    Points
    5.114
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    i believe that is possible

    and sg57, i would help out with that, but i am not real sure how to do it

  14. #344
    QJ Gamer Green
    Points: 6.374, Level: 52
    Level completed: 12%, Points required for next Level: 176
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    OMG where AM I!?!?!?!?
    Beiträge
    820
    Points
    6.374
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    alright so im making a little gmae just for me and my pals. I won't be sending it to pspu because the fact that its really noobish and sloppy and a bunch of other things. But anyway. I want to make a hidden bonus content kinda thing that will display pics when you press a button. I have the hidden key combo done and the button pushing thing done. My only thing is when you display the hidden content it doesn't let you exit. Ive tried everything from adding the whole break thing in it in diff places and nothing works. this is the snippet of code that im having trouble with:

    spad = Controls.read()

    if spad:l() and spad:r() and spad:down() and spad:select() then do
    screen:clear()
    screenrint(10,130,"U figured it out. Enjoy!",green)
    screen.flip()

    if spad:start() then
    break
    end

    while true do

    mpad = Controls.read()

    if mpad:cross() then
    screen:clear()
    screen:blit(0,0,bonusimg)
    screen.flip()
    screen.waitVblankStart()
    end

    if mpad:triangle() then
    screen:clear()
    screen:blit(0,0,bonusimg2 )
    screen.flip()
    screen.waitVblankStart()
    end

    if mpad:square() then
    screen:clear()
    screen:blit(0,0,bonusimg3 )
    screen.flip()
    screen.waitVblankStart()
    end

    if mpad:circle() then
    screen:clear()
    screen:blit(0,0,bonusimg4 )
    screen.flip()
    screen.waitVblankStart()
    end
    end
    end
    end
    end
    [SPOILER="For PSP History"]1.50 > 1.52 > 2.00 > 1.5 > 1.5 (POC CF) > 1.5 (Harleyg) > 1.5 (Casual) > 3.03 OE-A > 3.03 OE-C[/SPOILER]
    Check it out: [URL="http://youtube.com/watch?v=xNVPKM07TWs&mode=related&search="]Pen Spinning[/URL]

  15. #345
    QJ Gamer Green
    Points: 6.374, Level: 52
    Level completed: 12%, Points required for next Level: 176
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    OMG where AM I!?!?!?!?
    Beiträge
    820
    Points
    6.374
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Help please!
    [SPOILER="For PSP History"]1.50 > 1.52 > 2.00 > 1.5 > 1.5 (POC CF) > 1.5 (Harleyg) > 1.5 (Casual) > 3.03 OE-A > 3.03 OE-C[/SPOILER]
    Check it out: [URL="http://youtube.com/watch?v=xNVPKM07TWs&mode=related&search="]Pen Spinning[/URL]

  16. #346
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    bonusimg = Image.load(" ")
    bonusimg2 = Image.load(" ")
    bonusimg3 = Image.load(" ")
    bonusimg4 = Image.load(" ")

    function start()
    while true do
    pad = Controls.read()

    if pad:ltrigger() then
    if pad:rtrigger() then
    if pad:down() then
    if pad:select() then
    screen:clear()
    screen.print(10,130,"U figured it out. Enjoy!",green)
    screen.flip()
    ending()
    end
    end
    end
    end

    if pad:start() then
    break
    end
    end
    end

    function ending()
    while true do
    pad = Controls.read()

    if pad:cross() then
    screen:clear()
    screen:blit(0,0,bonusimg)
    screen.waitVblankStart()
    screen.flip()
    end

    if pad:triangle() then
    screen:clear()
    screen:blit(0,0,bonusimg2 )
    screen.waitVblankStart()
    screen.flip()
    end

    if pad:square() then
    screen:clear()
    screen:blit(0,0,bonusimg3 )
    screen.waitVblankStart()
    screen.flip()
    end

    if pad:circle() then
    screen:clear()
    screen:blit(0,0,bonusimg4 )
    screen.waitVblankStart()
    screen.flip()
    end
    end
    end

  17. #347
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    So how do I do that?

  18. #348
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Arrow

    take out the end function and just say while true do and controls.read cause end already has a function

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  19. #349
    QJ Gamer Green
    Points: 6.374, Level: 52
    Level completed: 12%, Points required for next Level: 176
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    OMG where AM I!?!?!?!?
    Beiträge
    820
    Points
    6.374
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    sorry IchigoKurosaki but your code didn't work. i figured it out. I had to put the

    if spad:start() then
    break
    end

    and the

    if mpad:start() then
    break
    end

    directly under the controls.read() function. I got it to work and its coming along. Thanks for trying tho guys!
    [SPOILER="For PSP History"]1.50 > 1.52 > 2.00 > 1.5 > 1.5 (POC CF) > 1.5 (Harleyg) > 1.5 (Casual) > 3.03 OE-A > 3.03 OE-C[/SPOILER]
    Check it out: [URL="http://youtube.com/watch?v=xNVPKM07TWs&mode=related&search="]Pen Spinning[/URL]

  20. #350
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von InhumanElmo
    sorry IchigoKurosaki but your code didn't work. i figured it out. I had to put the

    if spad:start() then
    break
    end

    and the

    if mpad:start() then
    break
    end

    directly under the controls.read() function. I got it to work and its coming along. Thanks for trying tho guys!
    *shrugs* whatever works for you :icon_bigg
    .:Nobis Development Group:.
    .:Personal Portfolio:.

    Playstation Portable - PSP1001 - 3.90 M33-2

  21. #351
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Question

    any one have a file loading code that if my cursor goes over a certain spot, then it loads the file tht is tested?

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  22. #352
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    take out the end function and just say while true do and controls.read cause end already has a function
    Sorry, but I dont really get ya there =(. How do you mean?

  23. #353
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Red face

    just get rid of ur functions cause u said 'start' and a function was named start

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  24. #354
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Well, I suppose that would work but isn't there a way to run two functions at the same time? That would be much more usefull. =)

  25. #355
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    well u didnt even use the function and i dont think a function can hold a loop

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  26. #356
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    just get rid of ur functions cause u said 'start' and a function was named start
    Was that message for me? If so, where did I say 'start'?

  27. #357
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Cool

    no my mix up but i did make a dual cursor script that works ill send it to u when i get the chance

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  28. #358
    Party at Las Noches!
    Points: 14.973, Level: 79
    Level completed: 25%, Points required for next Level: 377
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Florida
    Beiträge
    1.648
    Points
    14.973
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    well u didnt even use the function and i dont think a function can hold a loop
    A function can hold a loop i just perfer to split up my games into functions even if i don't use the function it's just more organized. I guess if you want you could have them all under If Statements, but then it starts to look crowded and messy. :icon_wink
    .:Nobis Development Group:.
    .:Personal Portfolio:.

    Playstation Portable - PSP1001 - 3.90 M33-2

  29. #359
    QJ Gamer Blue
    Points: 4.995, Level: 45
    Level completed: 23%, Points required for next Level: 155
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    122
    Points
    4.995
    Level
    45
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    no my mix up but i did make a dual cursor script that works ill send it to u when i get the chance
    Yeah, that'd be great. I'll watch and learn. =) If ya want I think you can attach it to a post in this thread.

  30. #360
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Angry

    well my comp is broken and i cant get a new one til christmas

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here



 
Seite 12 von 342 ErsteErste ... 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 62 112 ... LetzteLetzte

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 08:58 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .