Seriously what about bullets

43 views
Skip to first unread message

Blaž Rojs

unread,
Feb 18, 2012, 8:58:36 AM2/18/12
to app-inventi...@googlegroups.com
Today i aleready tried like 15 ways to get it work none have worked so please can someone tell me how to make to shoot bullet number 1. And if number 1 is aleready shot then number 2 itd...
I attached picture how it looks but it only shoots number 1 and then nothing else...


Thanks!
idk.png

Tim Witt

unread,
Jun 14, 2013, 12:20:15 AM6/14/13
to app-inventi...@googlegroups.com
Am i reading this correctly?
if bullet1 enabled=true 
   (bullet1 is at CharacterX and CharacterY)
then bullet2 enabled=true
   (bullet1 and bullet2 are both at CharacterX and CharacterY)

am I not seeing the part where CharacterX and CharacterY are from Character.Touched
  starting with moving the bullets into procedures
variables touchX touchY
Character.Touched X Y
  touchX to Character.X
  touchY to Character.Y

Procedure bullet1
bullet1.visable true
bullet1.enable true
bullet1.moveto touchX touchY

if 
 test bullet1
   then procedure bullet1
 else 
   test bullet2
    then procedure bullet2
 else......



Then again if the bullets were in a list...
Reply all
Reply to author
Forward
0 new messages