Oh yea one last and final thing.
In the print FC section do the locate first then PRINT Fish caught: ".
Then do PRINT FC.
0そうだね プレイ済み
Oh yea put it in a label, FC should be at the beginning of your program so it doesn't get set to 0 every time, have your main loop gosub to it and then put return at the very end of the gosub loop:
ACLS
*Variables here with other loading and initializing stuff*
@MAIN
*code and stuff*
GOSUB @CHKFC
*more code stuffs*
GOTO @MAIN
@CHKFC
*insert code here*
RETURN
0そうだね プレイ済み
Do you have sprite collision set up? If so then put:
FC(fish caught)=0
IF (variable of SPHITSP)==(control number of fish) then FC=FC+1:CLS
LOCATE (x and y coords of bottom right screen):PRINT FC
IF FC==5 THEN GOTO @WIN
Simple as that.... If you know sprite collision... If you don't, then I suggest you set it up.
0そうだね プレイ済み
NO PARENTHESES SO IT WOULD BE,
IF HIT==2 THEN *insert command that makes sprite stay on platform or makes sprite die or lose health from enemy* Idk platforms yet...
IF HIT==1 THEN SPHALT? or something like that...
Hope this has helped...
.
0そうだね プレイ済み
(If you have spscale on a sprite put it after spcol if you have it on the, it'll make collision accurate)
Ok thats it for sprite collision, bad news is that I don't know background collision, but I will learn it and write it down in my notebook.
3) After using SPCOL and SPHITSP, take the SPHITSP variable(HIT,for example). And make an IF-THEN statement, IF HIT==(second control number no(cont)
0そうだね プレイ済み
Allow me to explain spcol and its functions.
1)Variable=SPHITSP(1st control number(in this case, the player),second control number(the platform if its a sprite or an enemy))
2)To use sphitsp you need to have spcol set up first. It's quite simple. SPCOL Control number(for the sprite you want to have a detection for but you have to do it for each single sprite you have), True/False(If you (cont)
0そうだね プレイ済み
Gui man, its all simple with a gui...
0そうだね プレイ済み
Spcol. If its sprites. Don't know bg stuffs yet.
0そうだね プレイ済み
2 things to say.
1) Got smb3 bg tiles!
2) The 8 on the bottom right corner, is how fast you want to move the red square and it allows pixel copying and filling instead of quadrants.
6そうだね プレイ済み
Please a gui, but first what's the syntax?
0そうだね プレイ済み
How about putting a sprite, a big looking up and when you press a the bg moves forward.
0そうだね プレイ済み
When is release? I want to release same time as you.
0そうだね プレイ済み
How do I add new things? Like coins.
1そうだね プレイ済み