プレイ日記
Clayton DarkClay88
Why won't my sprite move?
8そうだね
プレイ済み
返信[1]
親投稿
nate NJR1432
i think B=BUTTON() has to be inside your loop. If that does not work i'll get my code ;)
0そうだね
プレイ済み
返信[2]
親投稿
Clayton DarkClay88
Got it! Thanks! Do you know how to make it so the sprite can only go in certain area? Or it can't go beyond a certain location instead of going off the screen?
1そうだね
プレイ済み
返信[3]
親投稿
nate NJR1432
I do! just let me get my code real quick.....
0そうだね
プレイ済み
返信[4]
親投稿
nate NJR1432
here it is! before loop: YMAX=224:XMAX=384 In loop: IF Y<0 THEN Y=0 IF Y>YMAX THEN Y=YMAX IF X<0 THEN X=0 IF X>XMAX THEN X=XMAX that should work :D
0そうだね
プレイ済み
返信[5]
親投稿
Clayton DarkClay88
Awesome! Thank you!
1そうだね
プレイ済み
返信[6]
親投稿
nate NJR1432
your welcome! :D
0そうだね
プレイ済み
返信[7]
親投稿
nate NJR1432
@Clayton wanna make a game with me? :)
0そうだね
プレイ済み
返信[8]
親投稿
Clayton DarkClay88
Sure what is it? :)
1そうだね
プレイ済み
返信[9]
親投稿
Clayton DarkClay88
Ok, so I did the coding, but it only works on the left and top. The right and the bottom side you can still go beyond the screen.
1そうだね
プレイ済み
返信[10]
親投稿
nate NJR1432
@Clayton maybe like a 2d mario game :) also make sure you typed it exactly as i did :) tell me if you get it to work or not :)
0そうだね
プレイ済み
返信[11]
親投稿
Clayton DarkClay88
Here's what I typed. I could help you do that. :)
1そうだね
プレイ済み
返信[12]
親投稿
nate NJR1432
its wrong... you put if ymax>0 then ymax=0 and the same for xmax, its really, IF Y>YMAX THEN Y=YMAX IF X>XMAX THEN X=XMAX there you go! :)
0そうだね
プレイ済み
返信[13]
親投稿
Clayton DarkClay88
Ooooh! Thank you!
1そうだね
プレイ済み
返信[14]
親投稿
nate NJR1432
Your welcome, glad too help :)
0そうだね
プレイ済み
返信[15]
親投稿
Clayton DarkClay88
Just making sure if I did it right... xD
1そうだね
プレイ済み
返信[16]
親投稿
nate NJR1432
I'm pretty sure you did :)
0そうだね
プレイ済み
返信[17]
親投稿
Clayton DarkClay88
Awesome! It did work! I just add to change the XMAX and YMAX to make the borders fit the screen. Thanks! :D Now I gotta learn sprite collision. Wish me luck. I may make a post asking how to do it anyways. xD
1そうだね
プレイ済み
返信[18]
親投稿
nate NJR1432
or i could just tell you here :)
0そうだね
プレイ済み
返信[19]
親投稿
nate NJR1432
i'll tell you, here it is! put 2 sprites on the screen like so, Out of loop: SPSET 0,0,0 SPSET 1,16,0 SPOFS 1,200,0 SPCOL 0 SPCOL 1 in loop: IF SPHITSP(1,0) THEN ACLS
0そうだね
プレイ済み
返信[20]
親投稿
Clayton DarkClay88
Okie. :) How do you make it so the ball goes foward when the stick figure hits it?
1そうだね
プレイ済み
返信[21]
親投稿
Clayton DarkClay88
Oh. XD
0そうだね
プレイ済み
返信[22]
親投稿
Clayton DarkClay88
Omg omg omg. You do not know how happy I am that this worked PERFECTLY! XDDD
0そうだね
プレイ済み
返信[23]
親投稿
Clayton DarkClay88
Now for some reason, no face stick gets put right below face stick, when I need him to go below the ball.
1そうだね
プレイ済み
返信[24]
親投稿
Clayton DarkClay88
Here's the coding.
1そうだね
プレイ済み
返信[25]
親投稿
nate NJR1432
sorry please tell me the problem again dont understand the first post :(
0そうだね
プレイ済み
返信[26]
親投稿
Clayton DarkClay88
Look at the comment when I say "Okie :)" Look at that comment's picture. The stick figure is on the bottom. Now look at the comment where I explain the problem. When I press start, he's suddenly at the top with the other stick figure. He's suppose to be below the ball. Here are my variables. xP
0そうだね
プレイ済み
返信[27]
親投稿
nate NJR1432
instead of making it spofs smx or smy just put sphome ID,-100,-100 :)
0そうだね
プレイ済み
返信[28]
親投稿
Clayton DarkClay88
Messed up a variable. xP Thanks for helping! You helped A LOT!
1そうだね
プレイ済み
返信[29]
親投稿
nate NJR1432
your welcome :D
1そうだね
プレイ済み