プレイ日記
klonoa hellkolbod
whats the proper code line for spcol and map loading?
0そうだね
プレイ済み
返信[1]
親投稿
dfrost 4311df
how I (try) to do it is by converting a sprite's position to a BG's position. Using that data on an array, you can check if the position under you is a blank or another block by using IF ARRAYNAME[PLYRY+1,PLYRX]==0 THEN Y=Y+GRAVITY note:(not plyry;variables can be changed)
0そうだね
プレイ済み
返信[2]
親投稿
klonoa hellkolbod
and which line do i apply this on?
0そうだね
プレイ済み
返信[3]
親投稿
dfrost 4311df
delete the code on 65 and 66 and place the code there, I think ill show a program showing the convertion of sp x and y to bg x and y
0そうだね
プレイ済み
返信[4]
親投稿
klonoa hellkolbod
it lists as a syntax error
0そうだね
プレイ済み
返信[5]
親投稿
dfrost 4311df
hmm...
0そうだね
プレイ済み
返信[6]
親投稿
klonoa hellkolbod
but at least it doesn't do the thing it did before so thats a plus
0そうだね
プレイ済み
返信[7]
親投稿
Stewart segludian
My SAMPLE project is Key: Q34443GD. Inside of the project is a file called PLATFORM. Starting on line 362 is a function called LOAD_MAP that will load map files saved from SmileBasic's map editor. No separate layer files required. Between lines 291 and 360 are a set of functions used to check if you can bump into a background tile or not (one layer is reserved for non-passable blocks).
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian
Lines 74 to 258 is the function that moves the hero around. It is a lot of code, but what you are trying to do is actually fairly involved. Please give it a read and let me know if you have questions.
0そうだね
プレイ済み
返信[9]
親投稿
klonoa hellkolbod
thanks i'll check it out once i feel better... ugh....
0そうだね
プレイ済み
返信[10]
親投稿
klonoa hellkolbod
ok so how do you link the menu with the game
0そうだね
プレイ済み