プレイ日記
Ethan SF£³ spider3Ybanana
How do i Load in a Sprite, and how do i control it with the Circle pad?
4そうだね
プレイ済み
返信[1]
親投稿
Ethan SF£³ spider3Ybanana
Like a computer Cursor, zee.
0そうだね
プレイ済み
返信[2]
親投稿
Josiah Spike4
try SPSET 0,501 @LOOP STICK OUT SX,SY X=X+SX*2:Y=Y-SY*2 SPOFS 0,X,Y VSYNC GOTO @LOOP
0そうだね
プレイ済み
返信[3]
親投稿
Josiah Spike4
You see I have messed with making an OS once
0そうだね
プレイ済み
返信[4]
親投稿
Ethan SF£³ spider3Ybanana
How would i make it so when i click A on a Certain spot it would do Something?
0そうだね
プレイ済み
返信[5]
親投稿
Josiah Spike4
Well you would have the x and y axis in the condition like IF X<150 AND X>100 THEN IF Y<150 AND Y>100 THEN IF BUTTON() AND #A THEN do what you want
0そうだね
プレイ済み
返信[6]
親投稿
Ethan SF£³ spider3Ybanana
But for a Specific Spot. I tried that and i can Click anywhere and it will opem the One thing. What if i wanted it to where only if i Click in the Area of "i" icon It will open it? how would i Find the Co-ordinates?
0そうだね
プレイ済み
返信[7]
親投稿
Josiah Spike4
just trial and error, I suggest using gbox and typing in different corridinates. Then the one that fits that area use as the corridinates.
1そうだね
プレイ済み
返信[8]
親投稿
komodo † 406mario
are you using bgtiles to do that bcause if you are then when you push a you can use bget to get the bg number of the tile and then if it equals the bgtile "i" then it loads what ever you want it to do you understand?
0そうだね
プレイ済み
返信[9]
親投稿
komodo † 406mario
but if you are using sprites then you can use sprite collision to detect that the cursor is on the "i" then have it programed that when the colison is true and the a button is pushed then it loads what you want.
0そうだね
プレイ済み
返信[10]
親投稿
komodo † 406mario
by "loads" i man opens.
0そうだね
プレイ済み
返信[11]
親投稿
komodo † 406mario
*mean not men
0そうだね
プレイ済み