プレイ日記
stepa stepi03
how do i locate a sprite on specific place? when i type LOCATE *location numbers* and then SPSET *some sprite numbers* it just spawns on the top and not where i wanted
5そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
You should use SPOFS to locate a sprite on certain place. Could you refer to preset helps as follows. 1) Type SPOFS on the console. 2) Press help [?] button on the keyboard.
0そうだね
未プレイ
返信[2]
親投稿
stepa stepi03
yes, i know how to use the help button, thanks
0そうだね
プレイ済み
返信[3]
親投稿
doum95 95doum
Also, you can adjust the home position of the sprites. With SPHOME instruction, once for each sprite. By default, it's top left (0,0). Sometime you need this reference point at the bottom/center of your sprite.
0そうだね
プレイ済み
返信[4]
親投稿
stepa stepi03
Well... i kinda don't know how to use both of the commands and the help button [?] doesn't help me at all
0そうだね
プレイ済み
返信[5]
親投稿
doum95 95doum
LOCATE position the cursor for PRINT instruction only. For sprites use SPOFS spritenumber,X,Y If you want to position your sprite 0 at the center (200,120) of the screen type at the end of your prog : SPFOS 0,200,120 Remember that you can test most instructions in Direct mode. Try this in Direct Mode : SPSET 0,335 SPANIM 0,"XY", -60,200,100, -30,50,20
0そうだね
プレイ済み
返信[6]
親投稿
doum95 95doum
Sorry it was SPOFS 0,200,120
0そうだね
プレイ済み
返信[7]
親投稿
stepa stepi03
yes, thanks alot
0そうだね
プレイ済み
返信[8]
親投稿
stepa stepi03
it works! but i have one more question, how do i make the text "PRESS ANY BUTTON TO CONTINUE" disappear? when i type ACLS the sprite disappears with the text and i want to make the text disappear alone without the sprite. see the screenshot for more info
0そうだね
プレイ済み
返信[9]
親投稿
stepa stepi03
sorry...
0そうだね
プレイ済み
返信[10]
親投稿
V360 TheV360
Use CLS to clear the text screen
0そうだね
未プレイ
返信[11]
親投稿
stepa stepi03
i still have a little problem with it... i want to make the text flashing but the CLS command doesn't delete the text, so i can't make it happen. will you help me, please? the selected text on the screenshot is the code for the text that is supposed to flash but it doesn't
0そうだね
プレイ済み
返信[12]
親投稿
stepa stepi03
nwm i fixed it
0そうだね
プレイ済み
返信[13]
親投稿
doum95 95doum
Next step is "PRESS ANY BUTTON TO CONTINUE" to be effective. Your program never reaches line 17, 16 GOTO @LOOP branch always to line 9. I suggest replacing lines 9 and 13 with a REPEAT UNTIL loop and avoid GOTO.
0そうだね
プレイ済み
返信[14]
親投稿
doum95 95doum
sry 9 and 16
0そうだね
プレイ済み
返信[15]
親投稿
stepa stepi03
i know it wont, thats why ill add something like if any button is pressed itll goto the @sprite in @loop. will it work?
0そうだね
プレイ済み
返信[16]
親投稿
doum95 95doum
You can change lines 9 and 16 like this 9 REPEAT 'The code between 9 and 16, will be repeated 'Until you press a button 16 UNTIL BUTTON() 21 WAIT 300 '
0そうだね
プレイ済み
返信[17]
親投稿
stepa stepi03
i made it like this (see selected text on the screenshot) but it's a little bit buggy so i'll use REPEAT UNTIL instead, thanks
0そうだね
プレイ済み
返信[18]
親投稿
stepa stepi03
well both of them works the same... i have to spam buttons in order for me to get to the @SPRITE loop, sometimes when i press the button once it does nothing
0そうだね
プレイ済み