Here done you the horse pics.
The black horse went a bit green :down: when i made the white transparent, but apart from that they are all the same as the orginals (minus the white).
There on the attachments.
Printable View
Here done you the horse pics.
The black horse went a bit green :down: when i made the white transparent, but apart from that they are all the same as the orginals (minus the white).
There on the attachments.
thnx. also do you think you can help me becuase ive coded the animation and the ai for the horses th run but it doesnt seem to work (but i think i might be able to sort then animation
I'll have a look at it for you. Just post a download link.
ok here is the link. i hope it is a faster link because i used a different file host
http://www.savefile.com/files.php?fid=1876553
it works quicker but in having trouble fixing the ai so they move all at different speeds
i know i tryed but for some reason i could not get it to work. So you know my troubles
what im trying to do is simply press triangle for it to basicly change the text "Hello World" to red "Hey World".. what am i doing wrong here? as pressing triangle or any other button does nothing. this is my first attempt at "programing" ( if thats what you wanna call it ) in lua.Zitat:
--Activate USB
System.usbDiskModeActivat e()
--Load Colors
red = Color.new(255, 0, 0)
green = Color.new(0, 255, 0)
white = Color.new(0, 0, 0)
function hello()
screen:clear()
screen:print(100, 100, "Hello World", green)
screen.flip()
while true do
screen.waitVblankStart()
end
if pad:triangle() then
hey()
end
end
hello()
function hey()
screen:clear()
screen:print(100, 200, "Hey World", red)
screen.flip()
while true do
screen.waitVblankStart()
end
end
the best way would be to say
blah blah blah,
triangle = false
if triangle == false then
screen:print(100, 100, "Hello World", green)
elseif triangle == true then
screen:print(100, 100, "Hey World", green)
end
pad = Controls.read()
if pad.triangle() then
triangle = true
else
triangle = false
end
bung that or something like that in ur script
hahah ive made it to lua noob territory!!!!
time to leave some bombs
*bomb 1*
-LUA SUCKS!
*bomb 2*
-C++ is better
now sit back and watch the flames and explsions!!
this is my mainmenu script, but when i run it i get a mostly black backround with some colour lines that are the right colors . basically my menu is working apart from a blackness that covers most of the screen!!Code:oldpad = Controls.read()
screen:clear()
start = Image.load("startgame.png")
cred = Image.load("cred.png")
restart = Image.load("restart.png")
intmenu = 1
while true do
pad = Controls.read()
if pad:down() and oldpad:down() ~= pad:down() then
intmenu = intmenu + 1
end
if pad:up() and oldpad:up() ~= pad:up() then
intmenu = intmenu - 1
end
if intmenu >= 4 then
intmenu = 1
end
if intmenu <= 0 then
intmenu = 3
end
if intmenu == 1 then
screen:clear()
screen:blit(0, 0, start)
screen:flip()
if pad:cross() then
dofile("character.lua")
end
end
if intmenu == 2 then
screen:clear()
screen:blit(0, 0, cred)
screen:flip()
if pad:cross() then
dofile("credits.lua")
end
end
if intmenu == 3 then
screen:clear()
screen:blit(0, 0, restart)
screen:flip()
if pad:cross() then
dofile("credits.lua")
end
end
screen:flip()
oldpad = pad
end
anyone see anything wrong? i tried
-----------
if intmenu == 2 and pad:cross ......
---------
all on the one line as oppose to the current if inside n if but it did nothing at all.
Help?? please
PS believe it or not it took me quite a while to make this code, so please don't steal it straight from here.. at least understand it first
Thanks