プレイ日記
Clayton DarkClay88
How would I program jumping or gravity.
7そうだね
プレイ済み
返信[1]
親投稿
Zee Storybookten9
VAR VVEL,Y=16 WHILE TRUE IF BUTTON()==16 THEN VVEL=2 IF Y!=16 THEN DEC Y,VVEL:VVEL=VVEL-.5 IF Y>16 THEN Y=16 WEND Or something similar
0そうだね
プレイ済み
返信[2]
親投稿
Clayton DarkClay88
This is what I have. The sprite doesn't move anymore when it's TRUE. Is BUTTON()==16 the A button?
0そうだね
プレイ済み
返信[3]
親投稿
Aaron Krondelo
why dont you just use #A ? So much easier.
0そうだね
プレイ済み
返信[4]
親投稿
Josiah Spike4
Try this code in the pic
0そうだね
プレイ済み
返信[5]
親投稿
Clayton DarkClay88
It still doesn't jump :(
1そうだね
プレイ済み
返信[6]
親投稿
Josiah Spike4
Because you call a double spofs, try getting rid of the spofs that doesn't use y as the y variable. So leave the one that is like Spofs 0,190,Y but get rid of the other one
1そうだね
プレイ済み
返信[7]
親投稿
Clayton DarkClay88
Ah! Thanks. Just a simple error that I was too stupid to see. XD Another question, how do change the Y position of the sprite to be on the grass? I don't know how to change it since a variable is in the Y position in the SPOFS
0そうだね
プレイ済み
返信[8]
親投稿
Josiah Spike4
before you go into the loop with the jump code make y=the height that it looks like it is on the grass then in the jump code make if y>'the same number you chose before' then y='the same number you chose before':g=1:re=0
1そうだね
プレイ済み
返信[9]
親投稿
Clayton DarkClay88
I got it! Thanks! One more question. How do I make it so when SPHITSP, one sprite disappears?
0そうだね
プレイ済み
返信[10]
親投稿
Clayton DarkClay88
Wait nvm, I got it, SPHIDE. THIS is my final question. When I finish level 1 in the game, I go to level 2 with my character on the finish line. How do I put it back to the beginning? Or reset it?
0そうだね
プレイ済み
返信[11]
親投稿
Josiah Spike4
I don't understand. does the background move? and does the background get controlled by an x variable? if so then make your x variable equal to like 0 or your starting number for the variable
0そうだね
プレイ済み
返信[12]
親投稿
Clayton DarkClay88
Well, to finish level 1, you need to SPHITSP this door, then it goes onto level 2, same background, but the sprites are not in the same place as the first level. Let me draw it
0そうだね
プレイ済み
返信[13]
親投稿
Clayton DarkClay88
Level 1, my character is behind the door.
0そうだね
プレイ済み
返信[14]
親投稿
Josiah Spike4
Reset your x variable that you use to move your character. like when i said to set the y variable before the loop, make the x variable to the beginning area you want before you go to level 2
0そうだね
プレイ済み
返信[15]
親投稿
Clayton DarkClay88
(The door is the finish line btw.) Level 2, my character is still under the door. Its not next to the coin.
0そうだね
プレイ済み
返信[16]
親投稿
Josiah Spike4
Give me your spofs for your character? so i can see how you move the character. (could you possibly upload it for a split second so i can download it then take it off the server?) also i'm wondering if this game is like this one i made KEY-[ TXNN4JQ3] it's not finished by the way
0そうだね
プレイ済み
返信[17]
親投稿
Josiah Spike4
I mean [ TXNNF3QJ ]
0そうだね
プレイ済み
返信[18]
親投稿
Clayton DarkClay88
Not exactly. Mine is more like a level clearing game. Here's ze test key, tell me when you got it so I can take it off of the publishing thing. Key - [NKA4A3E3]
0そうだね
プレイ済み
返信[19]
親投稿
Josiah Spike4
ok, i got it. you can take it down now. In the screen shot you will see that I made X=0, it will fix your problem if you put that where I put it.
1そうだね
プレイ済み
返信[20]
親投稿
Clayton DarkClay88
Awesome! Thanks! :D
1そうだね
プレイ済み