Than your cording,
==
IF B==n THEN (command) (command) (command)...
==
Please rewrite below:
==
IF B==n THEN
(command)
(command)
(command)
:
ENDIF
==
This is easy to debug.
You can edit code shorter.For example,
==
IF SPHITSP(5, 4)>0 OR SPHITSP(5,15)>0 OR SPHITSP(5,16)>0 OR SPHITSP(5,18)>0 OR SPHITSP(5,20)>0 THEN GOSUB @DEAD
IF SPHITSP(5,51)>0 THEN
SPSET 5,16:SPSET 1,17:SPSET 2,18:SPSET 3,19
SPSCALE 5,2,2
ENDIF
==
If you'vs already used SPSET to same Sprite Number,you have to use SPCHR instead of SPSET.
Thanks for your comments of Mr.L. and Mr.Hanzo!
P.S.
To Mr.Hanzo:I watched and was surprised your mahjong Game.Your game sysytem is same to my idea that mahjong tiles.But my programs could not run on PTC2(laugh)
* Between(38,2) and (31,3) - Japanese Katakana
* Between (38,4) and (31,5) - Japanese Hiragana
* Between (0,7) and (49,11) - Other Alphabets except English
* From (64,14) - Japanese Kanji(Chinese Kanji and Formossa Kanji are different)
Katakana and Higragana means are Vowels and consonants,then not Japanese can learn easily.But Kanji is pictogram,then most foriegners can't learn.
If you get more skill about PTC3,make several parts(Body,Face Left arm,Right arm and legs...) with SPDEF,SPSET each other,and struct to one Girl by SPANIM!
Next new program.I added translate of "DEF SPBG" that is generates from alphabetic and numeric sprites and BG to several letters in line.
But miiverse prohibits to paset URL exec official site.Then,
1.Download my program by my Public Key.
2.Show "DEF SPBG" in "KYMTITEI".
3.Search and watch my sight about DEF SPBG (with English guide I added tonight),if you understand mostly.
Sorry! My message was cut!
Games
* Super Monster -[File:KYMSUPER] - Action
* Lunar City P3 -[File:KYMLC] - Shooting
* The Underground Strategy -[File:KYMTITEI] - Action
* Super Bazooka -[File:KYMBAZ] - Shooting
* Lights Out -[File:KYMLIGHT] - Puzzl
Tool
* Sound Test Tool -[File:KYMSOUND]
Now,these are Japanese only.Sorry!
* PCG16 -[File:KYMPCG]
* Petit Adventure -[File:KYMADV]
Hullo! I'm Japanese Petit Computer user since 1st PetitCom.I open my Public Key and programms English users can run.
Now all programs exist from this Public Key [REEXEEQE],but this will change if I uploaded new programs.
Small Game to Learning BASIC
* Petit Sky -[File:KYMSKY]
* Eating Game -[File:KYMTABE]
* SAKE GAME -[File:KYMSAKE]
* Walk Walk -[File:KYMPMN10]
Games
* Super Monster -[File:KYMS