プレイ日記
oct Aidan xbomb795
How do I set the starting place of the sprite and the boundaries of where it can go?
1そうだね
プレイ済み
返信[1]
親投稿
MSWS coolestkid123
SX=200:SY=120 SPOFS 0,SX,SY (Starting position) IF SX>___ THEN DEC SX IF SY>___ THEN DEC SY etc
0そうだね
プレイ済み
返信[2]
親投稿
MikeATD corb1477
you can also use SPHOME to create a starting point for your sprite.
0そうだね
プレイ済み
返信[3]
親投稿
MikeATD corb1477
Alternative of sphome for me would be to set the sprite coordinates variable like: px=100:py=50 spofs 0,px,py just an example
0そうだね
プレイ済み
返信[4]
親投稿
MikeATD corb1477
Try this for boundaries: IF PX>=360 THEN PX=359 IF PY>=270 THEN PY=269 IF PX<=5 THEN PX=6 IF PY<=3 THEN PY=4
0そうだね
プレイ済み