|
Post by alexmega on Feb 8, 2018 11:28:44 GMT -5
Good afternoon, I have a problem shooting the ship, where as per the attachment. I would like it to be continuous as in several games and another is conflicting with the command shiftsprite with that of the enemies that is the command that I do not use, causing several bugs. Those who can help thank you.
|
|
8bit
Burger Head
Posts: 22
|
Post by 8bit on Feb 8, 2018 15:21:24 GMT -5
Make 3 Bullets sprites. You have 1 bullet.
Press Shoot button then:
If Bullet01=0 then Bullet01=1 create Bullet 1 and fire... ElseIf Bullet02=0 then Bullet02=1 create Bullet 2 and fire... then ElseIf Bullet03=1 Bullet03=1 create Bullet 3 and fire... EndIf
If XBullet 1 => 128+320 Then Bullet01=0 EndIf
If XBullet 2 => 128+320 Then Bullet02=0 EndIf
If XBullet 3 => 128+320 Then Bullet03=0 EndIf
|
|
|
Post by alexmega on Feb 8, 2018 22:07:36 GMT -5
in function loop?thank you for feedback.now testing
|
|
|
Post by alexmega on Feb 8, 2018 22:27:39 GMT -5
main waitraster 1 alterna=not(alterna).0 propsprite S2,272+(alterna*32),1 c=j j=joypad(0) if j.2 [and] px>128 then px-=2 if j.3 [and] px<380 then px+=2 if j.0 [and] py>128 then py-=2 if j.1 [and] py<330 then py+=2 Movesprite S1,px+32,py Movesprite S2,px,py if j.4 [and] c.4=1 [and] shot=0 then x=px y=py bullet=addsprite(1,1) propsprite bullet,714,1 movesprite bullet,x+64,y+16 shot=1 endif shiftsprite bullet,10,0 if spriteposx(bullet)>472 then movesprite bullet,0,0 shot=0 endif goto main
|
|
|
Post by alexmega on Feb 8, 2018 22:28:59 GMT -5
Please, if you do not ask too much, you have to put one together for me. I tried without success.
|
|
|
Post by alexmega on Feb 9, 2018 7:10:35 GMT -5
Good Morning. For better understanding, the shots can not have problems in this example. You can see what the conflicts are and I can not solve them.
thankyou!
|
|
|
Post by tiberiyltim on Feb 9, 2018 11:48:31 GMT -5
I saw your messages to me in "Star J" Thread... Your engine teems with bugs. Learn the basics. I did the new engine for you - romhacking.ru/Tim/ShootsBEX.zipGood luck!
|
|
|
Post by alexmega on Feb 9, 2018 20:00:30 GMT -5
OMG ! thank you
|
|
|
Post by alexmega on Feb 9, 2018 20:10:49 GMT -5
|
|