Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: semi transparnt images in lua

                  
   
  1. #1
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    33
    Posts
    4,026
    Rep Power
    139

    Default semi transparnt images in lua

    hey i have been trying to figure out how to use semi transparent images in lua. i have my semi transparent image in png format, but when i use it in my game its opaque. if someone could tell me how, if its even posible, it would be greatly appreciated.

  2. #2
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    69

    Default

    try use the alpha flag (opt. arg #8 to img:blit())

  3. #3
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    33
    Posts
    4,026
    Rep Power
    139

    Default

    can u use that in an example? plz

    here is what i im writing now

    screen:blit(0,0,clouds)
    so how would that look useing the alpha flag?

  4. #4
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    69

    Default

    local U=nil ; screen:blit(0,0,clouds,U,U,U,U,true)

    local im=clouds ;
    screen:blit(0,0,im,0,0,im:width(),im:height(),true ) -- more reliable

  5. #5
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    33
    Posts
    4,026
    Rep Power
    139

    Default

    it doesnt work. it just makes a bunch of weird likes and stuff

  6. #6
    PSP Coder -Xandu-'s Avatar
    Join Date
    Jan 2007
    Posts
    1,036
    Rep Power
    82

    Default

    It's opaque on Windows Lua Player, while it's semi-transparent on the PSP .

  7. #7
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    33
    Posts
    4,026
    Rep Power
    139

    Default

    oh! really! thanks lemme try that now

  8. #8
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    69

    Default luaplayer pc port

    Quote Originally Posted by -Xandu- View Post
    It's opaque on Windows Lua Player, while it's semi-transparent on the PSP .
    ..so (alphaFlag=true) means
    PSP: blit semi-trans.
    PC: blit opaque

    ?

  9. #9
    DCEmu Old Pro Gold Line's Avatar
    Join Date
    Oct 2006
    Posts
    1,828
    Rep Power
    98

    Default

    hi can i just ask what do i use to change .mid music to a format that lua can play

  10. #10
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    69

    psp lua sound

    I played mono .wav in luaplayer PSP 2.0 but not stereo .

    dont know a homebrew sound file converter..

    PSPRHYTHM 7.1 have some new sound file capability..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •