If your using notepad, press the CTRL and H buttons at once.Zitat:
Zitat von montrob
It'll ask what to find, and what to replace what it finds with.
PSPduh showed me that. VERY handy little feature of Notepad.
Printable View
If your using notepad, press the CTRL and H buttons at once.Zitat:
Zitat von montrob
It'll ask what to find, and what to replace what it finds with.
PSPduh showed me that. VERY handy little feature of Notepad.
soz i all ready worked out how to do this my self :Jump:
lua rocks
Zitat:
Zitat von EminentJonFrost
OMG! That feature is AWSM! :Jump: :Jump:
And I need help somewhere else..
My game is going to be played with the psp held vertical.. Is there a way that you can print text to the screen vertical?
um...the only way i can think of is making a pic with the text you want shown printed sideways.Zitat:
Zitat von montrob
you mean vertical as in
|
|<shoulder button
|
< top PSP logo bottom >
|
|<shoulder button
|
right?
ya thats rightZitat:
Zitat von EminentJonFrost
I know EminentJonFrost already helped with this, but I just wanted to say that Word has a function and you can say what to replace with what and it replaces all of those.Zitat:
Zitat von montrob
Hmmm also with my notepad of Win98SE its just the same as backspace...
maybe this might be of interest to you montrob:
I havent checked it out yet, but it sounds like what you may be looking for. I'm gonna look into it now.Zitat:
Luaplayer v0.19
==========
- directory detection bugfix [moonlight]
- Changed System.loadModule to loadlib to work. [Oobles
the same as the traditional lua loadlib function
- Made loadlib check if a module is already loaded before trying
to load. [Oobles]
- Removed getLuaState export. No longer required. [Oobles]
- Made debugOutput work in the same way as printf in bootstrap. [Oobles]
- Added loadlib.prx kernel module. required for module loading. [Oobles]
- Added a module sample for manipulating images [Shine]
Edit - I found in the new Luaplayer (version 19) in the Samples folder, this script:
:)Code:function rotate(image)
local w = image:width()
local h = image:height()
local result = Image.createEmpty(h, w)
for x=0,w-1 do
for y=0,h-1 do
result:pixel(h-y-1, x, image:pixel(x, y))
end
end
return result
end
function printRotated(x, y, text, color, image, rotateIndex)
rotateIndex = math.mod(rotateIndex, 4)
local w = string.len(text)
local result = Image.createEmpty(w * 8, 8)
result:print(0, 0, text, color)
if rotateIndex > 0 then
rotateIndex = rotateIndex - 1
for i=0,rotateIndex do
result = rotate(result)
end
end
image:blit(x, y, result)
end
cadetBlue = Color.new(95, 158, 160)
printRotated(132, 0, "Don't ask what Lua Player", cadetBlue, screen, 0)
printRotated(472, 76, "can do for you,", cadetBlue, screen, 1)
printRotated(160, 264, "ask what you can do", cadetBlue, screen, 2)
printRotated(0, 76, "for Lua Player!", cadetBlue, screen, 3)
screen.flip()
while true do
screen.waitVblankStart()
end
Wow, that's awesome.Zitat:
Zitat von EminentJonFrost
Cheers. :D
can any help me with making text return once is hit the edge off the screen? so it doesnt run if the end of the screen? thanks
just set x to 450 so like:
if x > 480 then x = 450 end
very simple