Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
次のページ(過去)
返信[2]
親投稿
Autz sonic-HD8765
You're using XSCREEN 4 or something akin to that?
0そうだね
プレイ済み
返信[2]
親投稿
Autz sonic-HD8765
For smooth movement, i would recommend using ATAN, SIN and COS, since increasing/decreasing X and Y by conditional statements would produce an odd movement. Here's a sample code.
2そうだね
プレイ済み
返信[8]
親投稿
Autz sonic-HD8765
Here's a dummy code i have on my stack. It used the algoritm i explained ealier.
0そうだね
プレイ済み
返信[7]
親投稿
Autz sonic-HD8765
Depends on how you implement it. The algoritm archieve that gradual movement, just visualize it: Let's suppose that the X value of a projectile which ID is 7 is 2 (X=2). On the first frame, X is increased by using the algoritm, now X is 3. Later on the next frame, the same algoritm is used, but since X is no longer 2 but 3, it will increase to 4, and so on...
0そうだね
プレイ済み
返信[5]
親投稿
Autz sonic-HD8765
The most generic ones: - Using arrays (recommended). - SPOFS alone. Quick example: I check a certain range of sprites ID and check if one of those IDs is actually being used on a sprite. If there's a sprite with such ID, i extract his X and Y values (by using SPOFS), increase either X or Y, and relocating the sprite using the new coordinates.
0そうだね
プレイ済み
返信[3]
親投稿
Autz sonic-HD8765
That's also relative easy. If by laser you mean a big laser that goes into infinity: Just spawn it using the player coordinates. If you mean individual projectiles: Same as above but after spawn it, on each frame, increase the offsets of every single projectile so they will still move independently of the player.
0そうだね
プレイ済み
返信[9]
親投稿
Autz sonic-HD8765
Most of those old posts are bait. That key doens't exist.
1そうだね
プレイ済み
返信[1]
親投稿
Autz sonic-HD8765
SO much this!
0そうだね
プレイ済み
返信[1]
親投稿
Autz sonic-HD8765
By manipulating variables that later will be used to locate the sprite onscreen: IF BUTTON(1) AND #RIGHT THEN INC PX IF BUTTON(1) AND #LEFT THEN DEC PX SPOFS 2,PX,PY
0そうだね
プレイ済み
返信[32]
親投稿
Autz sonic-HD8765
Well, you can take a look at the commands, their explanation and their examples to see whenever command could help you on your task. Other thing you could do is toying (practice) around with such commands and algoritms, you will learn a lot from that. I was toying with Sine and Cosine and from that i made this game from it:
0そうだね
プレイ済み
返信[45]
親投稿
Autz sonic-HD8765
^^ You missed the mirrored hair
0そうだね
プレイ済み
返信[39]
親投稿
Autz sonic-HD8765
SBS sure is getting funny, isn't it? Thanks to that, i come with the idea of making a program to teach users how programming works.
0そうだね
プレイ済み
返信[24]
親投稿
Autz sonic-HD8765
lol, funny.
0そうだね
プレイ済み
返信[7]
親投稿
Autz sonic-HD8765
-- That is called Algoritm, which helps out to visualize a complex process. You can extrapolate that logic into computer instructions and voilá, you have a program.
0そうだね
プレイ済み
返信[6]
親投稿
Autz sonic-HD8765
On summary: You basically write instructions to a computer to do what you want it to do. To make those instructions you need to learn the tools you have available (functions, keywords and data types), and logic to glue all that. The computer executes instructions line-by-line just as we do anything. For example: To go to school i should: 1) Wake up 2) Dress up 3) Eat breakfast 4) Take the bus --
0そうだね
プレイ済み
返信[5]
親投稿
Autz sonic-HD8765
Also, you can check the built-in examples and see their codes and try to understand them. IMO is not a good way to learn since all of them are spaghetti code and you would get confused, in contrast of being structured code, which improves readability of the code.
0そうだね
プレイ済み
返信[4]
親投稿
Autz sonic-HD8765
If you want to learn how to program: any how-to-program tutorial should do the trick. If you want to learn the built-in functions: SmileBASIC website has a Reference Manual that listed all functions with examples. You can also use the "?" button on the keyboardto access to certain parts of the manual (only works if you locate the cursor on a function or keyword).
0そうだね
プレイ済み
返信[3]
親投稿
Autz sonic-HD8765
In that regard, any how-to-program thread should work, sad thing SmileBASIC doesn't have a built-in tutorial for that, but well... If you want to know the functionality of any built-in function, the SmileBASIC webpage has a Reference Manual for that. Anything beyond that is basic knowledge on how to write code.
0そうだね
プレイ済み
返信[1]
親投稿
Autz sonic-HD8765
You mean lessons of making a game? Or lessons for knowing how to use BASIC?
0そうだね
プレイ済み
返信[1]
親投稿
sonic-HD8765 sonic-HD8765
投稿元ユーザーにより削除されました。