Btw I had a question that never got answered. Can someone tell me what I'm doing wrong? I'm an idiot when it comes to raw scripting. :ROFL:
http://forums.qj.net/showpost.php?p=...postcount=5055
^ It's here ^
Printable View
Btw I had a question that never got answered. Can someone tell me what I'm doing wrong? I'm an idiot when it comes to raw scripting. :ROFL:
http://forums.qj.net/showpost.php?p=...postcount=5055
^ It's here ^
You could do it right before you blit flower to the screen, or anywhere in the while true loop. Just make the x coordinate for "flower" a variable, and increase or decrease it depending on how you want to move it. You can do the same for the y coordinateZitat:
Zitat von ZeroMega
does any body have a bullet or "projectile" system that i can use thats simpler than the evilmana one? Because i can't seem to get that one to work with collision, its giving me a headache Thanks for your help
Hey - Does anyone know how to clear an image of all drawings, but keep the image? Ive tried re-loading it via:
Code:clean_guy = Image.load("guy.png")
guy = clean_guy
...
-- draw some stuff on guy.. like a line or if i clear it
guy:clear()
-- now i want to get it back to clean image... ive tried:
guy = clean_guy
-- but it doesnt work...
... eh?Zitat:
Hey - Does anyone know how to clear an image of all drawings, but keep the image?
???Code:guy = Image.createEmpty(clean_guy:width(), clean_guy:height())
BlackShark - Make your own. I did for my Call of Duty 2 game - it's not as hard as you think... Just sit down and thik rationally about what you want to do, and think of methods to make it work... If all else fails, take someone elses projectile system, but i hope you realize most bullet systems are game specific... If you arent making a side scrolling shooter, then dont use a side scrollers bullet system. IF you arent making a game with a fake Z buffer, dont use a bullet system from such a game...
Ill give it a try, thanks (its a 2d space shooter, shouldn't be too hard)
how about loading the same image under two variables? one to mess around with and another to switch back to normal with.Zitat:
Zitat von SG57
i know its not the most creative way to do it, but it is A way. (i have no doubt you'll come up with something inventive soon though :p)Code:clean_guy = Image.load("guy.png")
other_guy = Image.load("guy.png")
Hi guys, just wondering if anyone could point me in the right direction to learn wifi/netlib for the psp, i already know LUA and im in the process of planning an online community chat game/world for the psp but im having trouble with the wifi side of things :p
Help is really appreciated :D
-- Thanx, Dean
thats what im working on...Zitat:
Zitat von Blackshark
http://wiki.ps2dev.org/psp:lua_playerZitat:
Zitat von Deanaw22
go to special functions of luaplayer, and at the bottom theres wifi functions. i dont know any netlib, sorry.
another way is to store the image labels in a table so that they can be accessed with a variable. what I mean isZitat:
Zitat von EminentJonFrost
then you can change a variable "x" between 1 and 2 and then blit the image with "screen:blit(0, 0, guy[x])Code:guy[1]=Image.load(img)
guy[2]=Image.load(same img)
Ok guys need some help, Im making a lil game here to test my collision skills and i get this error
error: script.lua:18: loop in gettable
I think it might be because I have a lot of random calculating going on help plz
Spoiler for Fish Dish:
Thanx alot pal! :)Zitat:
Zitat von EminentJonFrost
pls can anyone tell whats the function to copy file from one location to other location???
like from ms0:/folder1 to ms0:/folder2
Can anyone tell me how to make a block of text that can be scrolled down to show more? I hope that makes sense....
Zitat:
Zitat von GuitarGod1134
blit your text to a an image and have that image blit cliped, then just move the x of the clip up and down to "scroll".Zitat:
Zitat von andyuff
Lol wow simple spelling error lol thanks.
Yeah, that's the one way I had thought of, thanks. I guess I'll go ahead and do that.
-= Double Post =-
Oh and how would I clip the image?
ok one more thing how do i use transparency when blitting. its something like
screen:blit(0,0,bla,true) or something right?
clip and image:Zitat:
Zitat von Lua wiki
look at the above quote from the ps2dev wiki, [alpha = true].Zitat:
Zitat von GuitarGod1134
System.rename("ms0:/folder0/file.file", ms0:/folder1/file.file")Zitat:
Zitat von myschoo
.... may work, but i don't think it will.
That will clip it, but how will I be able to show the rest if it's clipped off? Thanks for all the help, by the way.
I already looked at wiki and it didnt really explain how to use it. doesn anyone know an example?
Zitat:
Zitat von andyauff
to blit the whole image same function, less input.Code:image:blit(x, y, imagesource)
and the function eyece put doesnt 'clip' it off, rather copies a portion of an image.
its strange but somehow it works in PC but not very well in PSP, but sill, that renaming, i needd copy from --> to
transparency when blitting...i dont know how to do that. but whats wrong with giving the image a transparency yourself so you wont have to worry about it?Zitat:
Zitat von GuitarGod1134
I know how to blit images. I need to know how to blit them with transparent backgrounds
what do you mean by 'but not very well in PSP'?Zitat:
Zitat von myschoo
Okay, I'll try it, thanks.
use an image editing program. i use The GIMP. :)Zitat:
Zitat von GuitarGod1134
its like Photoshop for the poor! :tup: