@Sousanator
Its hard to help with your problem if we dont see the code itself. So maybe you can post it. (or pm someone if that doesn't work)
EDIT i see PSPhax0r9 was faster, grrr! BTW how your game going, hax0r9?
Printable View
@Sousanator
Its hard to help with your problem if we dont see the code itself. So maybe you can post it. (or pm someone if that doesn't work)
EDIT i see PSPhax0r9 was faster, grrr! BTW how your game going, hax0r9?
@Soadnation
Did you define Line[1]? Otherwise it won't work. If thats not it, maybe a little more code?
hi all. this is my code, and whenever i start it, it goes up to 90% and hangs. it soendt even give me an error, just hangs.pls help me.
System.usbDiskModeActivat e()
pink = Color.new(255, 0 , 153)
blue = Color.new(0 , 153, 255)
orange = Color.new(255, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0 , 0)
green = Color.new(0 , 128 , 0)
red = Color.new(0 , 128 , 0)
screen:print(194, 136, "Loading: 0%", red)
screen.flip()
hoog1 = Image.load("hooger1.png")
screen:clear()
screen:print(194, 136, "Loading: 20%", red)
screen.flip()
screen:clear()
screen:print(194, 136, "Loading: 40%", red)
screen.flip()
hippieCROSS = Sound.load("hippie/hippieCROSS.wav")
hippieSQUARE = Sound.load("hippie/hippieSQUARE.wav")
screen:clear()
screen:print(194, 136, "Loading: 60%", red)
screen.flip()
hippieCIRCLE = Sound.load("hippie/hippieCIRCLE.wav")
hippieTRIANGLE = Sound.load("hippie/hippieTRIANGLE.wav")
screen:clear()
screen:print(194, 136, "Loading: 80%", red)
screen.flip()
hippieDOWN = Sound.load("hippie/hippieDOWN.wav")
hippieUP = Sound.load("hippie/hippieUP.wav")
screen:clear()
screen:print(194, 136, "Loading: 90%", red)
screen.flip()
hippieRIGHT = Sound.load("hippieRIGHT.w av")
hippieLEFT = Sound.load("hippieLEFT.wa v")
intro2 = Image.load("intro2.png")
screen:clear()
screen:print(194, 136, "Loading: 100%", blue)
screen.flip()
screen.waitVblankStart(60 )
Code:background = Image.load("background.PNG")
player = Image.load("ball.PNG")
block = Image.load("block.PNG")
--Variables
XAxis=100
YAxis=100
L1=1
System.usbDiskModeActivate()
while true do
screen:clear()
screen:blit(0, 0, background, false)
screen:blit(XAxis, YAxis, player)
screen.flip()
pad = Controls.read()
if pad:start() then
break
end
if pad:right() then
if XAxis<448 then
XAxis=XAxis+6
else
XAxis=448
end
end
if pad:left() then
if XAxis>0 then
XAxis=XAxis-6
else
XAxis=0
end
end
--First Line
YVars1 = {0,0,0,0,0,0,0}
Line1 = {0,0,0,0,0,0,0,0}
if L1==0 then
Line1[1]=math.random(0,1)
Line1[2]=math.random(0,1)
Line1[3]=math.random(0,1)
Line1[4]=math.random(0,1)
Line1[5]=math.random(0,1)
Line1[6]=math.random(0,1)
Line1[7]=math.random(0,1)
Line1[8]=math.random(0,1)
YVars1=272
end
if L1==1 then
YVars=Yvars-4
If Line1[1]==0 then
screen:blit(0, YVars1, block)
end
end
end
Grimfate126, have you checked the filenames of "hippieRIGHT = Sound.load("hippieRIGHT.w av")", "hippieLEFT = Sound.load("hippieLEFT.wa v")" and "intro2 = Image.load("intro2.png")"
Theres probably something wrong there since it wont go past there. Either that or the soundfiles or the pic is to big.
Soadnation, as i said its not defined --> so its nil. Its not defined because its only defined if L1==0, but its never 0 since you say its 1 before the loop.
BTW Im getting some progress with my game. (Im trying to make an RTS)
I have movement (sort of, its pretty funny right now) and i can build barracks and soldiers. Also different mousecursors, music and sound and money is working.
No firing just yet, scrolling, animations and collision. Those are the first things on my list.
Later will come the enemy and more advanced stuff.
Sounds pretty cool, right now im working on a side scrolling shooter where Tux pwns Windows! Anyways if anyone needs help, just let me know.
yea, i have checked them. the musci file is about 4 kb. is that too big?? the pic is fine.Zitat:
Zitat von Altair
Zitat:
Zitat von Altair
Ok thanks. I must of missed that part ofd the post(or just saw the need more code part). im going to see if it works now.
ok nevermind. i still get the same error.