android
Prev Previous Post   Next Post Next
  #11  
Old 03-11-2010, 07:25 PM
nikc4 nikc4 is offline
Junior Member
 
Join Date: Feb 2010
Location: In a cardboard box
Posts: 46
Default

I've made the first gun move. It's not much, but it's something. It's a desert eagle now instead of the revolver. It functions, but it crashes if you fire it too many times and gets stuck on the second frame. Here's the code I changed, if anyone knows how to fix it. Meanwhile, I'll figure it out for the other 3 guns.

function deserteagleshot()

text.draw(350,222,"BACK") --kan hier beter een plaatje van maken, of toevoegen aan al de plaatjes die je al hebt
screen.update()

while loop==1 do
if control.read()==1 then
if control.isTouch()==1 then
if touch.click()==1 then
xn,yn = touch.pos()
if xn >= 185 and xn <= (185 + 71) and yn >= 100 and yn <= (100 + 71) then
image.load("gunz/deserteaglefire.png"):draw(0,0)
text.draw(350,222,"BACK")
shotdeserteagle: play()
screen.update()
image.load("gunz/deserteaglerecoil.png"):draw(0,0)
text.draw(350,222,"BACK")
screen.update()
image.load("gunz/deserteaglerecover.png"):draw(0,0)
text.draw(350,222,"BACK")
screen.update()
image.load("gunz/deserteagle.png"):draw(0,0)
text.draw(350,222,"BACK")
screen.update()
elseif xn >= 340 and yn >= 220 then -- dit is de plek van "BACK"
loop=0 menu()
end;
end
elseif control.isButton()==1 then
if button.click()==1 then
break
end
end
else
os.sleep(10)
end
end
end
Reply With Quote

 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 03:09 AM.