Search found 10 matches

by Mr Billy
Fri Dec 23, 2005 10:40 am
Forum: PSP Lua Player Development
Topic: problem with for statement and tables
Replies: 1
Views: 1244

problem with for statement and tables

i have two tables, one holding my images(tiles) and one holding the layout of the tiles. i am using a for statement so i dont have many lines of code. when i use this code, i get an "attempt to index field '?' (a nil value)" error on the blit line. if i replace the y in layout[y] for a num...
by Mr Billy
Sat Nov 26, 2005 6:03 pm
Forum: PSP Lua Player Development
Topic: IR Question
Replies: 6
Views: 4466

Re: IR Question

As it is already implemented I have to provide some nice Lua API for it, only and copy and paste the implementations. Do you have some ideas how the Lua functions for SIRCS and general IR should look like?[/quote] i honestly have no idea how they should look, im new to the whole IR thing. since i do...
by Mr Billy
Sat Nov 26, 2005 3:16 pm
Forum: PSP Lua Player Development
Topic: IR Question
Replies: 6
Views: 4466

what if i made a program to count the number of milliseconds between inputs, and output every x milliseconds. it really wouldnt matter what character is outputted, just so it lights up the LED. that could work theoretically, right? EDIT: I made a program to do this and i counted 17 milliseconds betw...
by Mr Billy
Sat Nov 26, 2005 2:17 pm
Forum: PSP Lua Player Development
Topic: IR Question
Replies: 6
Views: 4466

IR Question

i love the new ir function, i was playing around with it and its pretty neat. i was wondering tho, can i read the command that a button on my tv remote is sending, and send that command to do stuff with my tv. i know its just a pulse rate on the LED and not really a command, but is there a way to do...
by Mr Billy
Sat Nov 19, 2005 12:07 pm
Forum: PSP Lua Player Development
Topic: Alpha Blit
Replies: 3
Views: 2311

thanks for the reply

i read that topic, but i still really dont understand how this is done. i have a 100% opaque image and i want to blit it at a % transparency. i would make the png transparent to begin with, but i want the transparency to change frequently throughout my program.
by Mr Billy
Thu Nov 17, 2005 4:20 am
Forum: PSP Lua Player Development
Topic: Alpha Blit
Replies: 3
Views: 2311

Alpha Blit

is there a way to blit using alphatransparency. i mean if i had a fully opaque image and i wanted to blit it at 50% transparency. is this possible without making a function to redraw the image pixel by pixel?
by Mr Billy
Thu Oct 27, 2005 4:58 am
Forum: PSP Lua Player Development
Topic: Check if pixel is transparent
Replies: 7
Views: 3490

I know how to make pngs transparent, and how to set pixels to transparent, but I want to be able to identify whether or not a pixel is transparent in a loaded png.
by Mr Billy
Wed Oct 26, 2005 10:41 am
Forum: PSP Lua Player Development
Topic: w00t, GTA: LCS uses Lua!
Replies: 7
Views: 3772

no i understood you that its only a small part of the game, but i still wonder why they would use a high end language.
by Mr Billy
Wed Oct 26, 2005 10:23 am
Forum: PSP Lua Player Development
Topic: w00t, GTA: LCS uses Lua!
Replies: 7
Views: 3772

hmmm... why would a big game developer use a high end language for their games? lua is a great language, but it cant compare to c or c++ in game programming. its like using visual basic to make a direct x game. it just shouldnt b done. can anyone that has LCS confirm that this is truely lua code. if...
by Mr Billy
Wed Oct 26, 2005 10:16 am
Forum: PSP Lua Player Development
Topic: Check if pixel is transparent
Replies: 7
Views: 3490

Check if pixel is transparent

Is there a way to check if a pixel in an image is transparent? When I use the img:pixel, the transparent pixels register as white for me. thanks.