Quick Links: Gideros Home | Download Gideros | Developer Guide

SinisterSoft

  • Minstrel
    Never Mind... cause' it WORKS! Multiple Bullets! It took a while but I finally got there!
    June 2015
  • Minstrel
    with the pool we created earlier but other than that I am clueless. The gideros forums have got me this far I know we can make it! I really hope you can help as I only have less than a week.
    June 2015
  • Minstrel
    Hi Anthony! Something rather odd has happened... I have achieved Multiple bullets but they don't fire correctly... What appears to be happening is there are multiple bullets but when fire key is pressed a bullet appears at playership1's position but doesn't move. while this is happening another bullet spawns on the left hand side of the screen and fires upwards as usual. I have run over the firing code stage:addEventListener(Event.KEY_DOWN,function(e) if e.keyCode==KeyCode.LEFT then left=true playerDir=-1 elseif e.keyCode==KeyCode.RIGHT then right=true playerDir=1 elseif e.keyCode==KeyCode.Z then print("fire") bx,by=playership1:getPosition() bullets[counter] = bpool:createObject() stage:addChild(bullets[counter]) bullets[counter]:setPosition(bx,by) bDir=-1 counter = counter+1 end and all seems to be correct (it is calling "bullet" to the playership in bullets[counter]:setPosition(bx,by) and is moving the bullet in bDir=-1). I believe
    June 2015
  • Minstrel
    Hello Anthony! I hear your good help for lot's of people so I though I'd ask you for help. I have a bit of a query. I'm making a space invaders type game and iv'e got one bullet firing from my ship but when i press the fire button (Z) repeatedly the bullet shoots comes back and then shoots again. What I need to know is how to make it so I can fire one bullet then fire another straight away without the first one coming back. Here is my code: stage:addEventListener(Event.KEY_DOWN,function(e) if e.keyCode==KeyCode.LEFT then left=true playerDir=-1 elseif e.keyCode==KeyCode.RIGHT then right=true playerDir=1 elseif e.keyCode==KeyCode.Z then print("fire") bx,by=playership1:getPosition() bullet:setPosition(bx,by) bDir=-1 end end) I've been told I need to use an array but I am pretty in experienced with gideros. If you could help and tell me what to do I would really appreciate it. Thanks for your support!
    June 2015
  • GregBUG
    hi anthony can you try on your s3 with this custom gideors player (dropbox on shared folder). i recompiled again and again but re result are very slow... it's gideros player + luajit + tntcollision. thanks.
    February 2014
  • GregBUG
    Hi Anthony just shared with drop box let me know if ok.
    February 2014
  • GregBUG
    i'm packaging tn tvpad v1.31 and i would to add your name (if i can) in greetings inside docs what's your name ?
    January 2013
  • SinisterSoft
    SinisterSoft joined.
    Welcome Aboard!
    June 2012

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

About

Username
SinisterSoft
Joined
June 2012
Visits
201
Last Active
10:32AM
Roles
Maintainer

Top Posters