Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8
次のページ(過去)
返信[1]
親投稿
Stewart segludian
Attached is a small excerpt from my spfunc_fairy program, showing the use of touch. The out part of the touch command lets it store output into the variables you pass in. STTM is the part you care about at the moment. If the screen was touched it has a time code, but if not it is zero. TX, and TY are where the screen was touched. So call touch out sttm, tx, ty then if sttm != 0 then start the game
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Any reason you don't animate like the attached? It seems much easier with less overhead. In the data statement the first number is the number of frames. Then for each frame you have a duration in 1/60th of a secod followed by a sprite definition number. Then to switch animations just call spanim again with a different label. No need to destroy and recreate the sprite.
2そうだね
プレイ済み
プレイ日記
Stewart segludian
Did someone ask for some sample platforming code? My new samples folder download is Q34443GD. Inside run the program platform. I hope it helps everyone. You can kind of jump into walls and get stuck floating in air sometimes. Otherwise, I think it is pretty solid and would make a nice starting point for a super mario bros type of game.
7そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Looks really cool. Great work.
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Attached is a small text scaling demo using gputchr. Is that what you are looking for?
1そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Looks very nice, I was always a fan of the Mandlebrot and Julia set fractal.
2そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Is this the sort of thing you are looking for ? (see attached) You would of course need to modify the file name. Use the bottom line if you just want to load to the graphics page. The rest loads it as a tile map zooms in, and lets you scroll around the image. Good luck.
2そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Guess it is late, that non-casted number isn't being set to a string but a string array. SmileBasic really ought to throw an error for that especially when option strict is active.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
You shouldn't be setting a string to a number without casting. However the bigger problem is you allocate an array based on a non-initialized variable. You should really be reallocating that array every time the variable is changed. I wonder if it throws an error there since it is the first use in the code.
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Your final IF statement is missing a THEN. SmileBasic just ran past the end of the code looking for it.
1そうだね
プレイ済み
プレイ日記
Stewart segludian
Something I was making this weekend. Intergalactic Dodgeball. [It isn't done yet]
7そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
What kind of game is the A.I. for? Street Fighter, StarCraft, Doom, and Tetris Attack are all going to have significantly different A.I. I am guessing you could try having the enemy unit measure distance from the player. If they are in range attack once every few seconds. If not in range move toward them.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Congratulations, glad you got the background map sorted out.
0そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Very nice picture, looks like it was worth the effort. Glad Petit Modem is working for you now.
1そうだね
プレイ済み
返信[2]
親投稿
Stewart segludian
Very nice, I always liked the Mandlebrot and Julia sets. Great job!
1そうだね
プレイ済み
プレイ日記
Stewart segludian
Lots of people seem to have trouble loading maps from smile tool. So I decided to try my hand at making a function to load the map straight from the map file instead of exported layers. Attached is that code. There is no error handling and the header is ignored but it seems to work. Anyone want to try it on your own map and see if I missed any bugs? Thanks
4そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian
If you download my samples project there is map loading in some of the programs. Look at slimebump2 for a 64x64 4 way scrolling map with custom background tiles I made in smile tool. Note I have the original map file and the exported layers in the folder. I have another, I think it is just called mapload which is basically the code I posted previosly. Hope that helps.
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
Attached is some map loading code with a custom tile set. The trick is you want to export the layers and load those, not the map file itself. You export the layers with the sc save button on the top middle of the map editor screen. Think of layers like layers in photoshop. You can have transparent parts that let the background show through. If you only care about one layer, you can load only one.
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian
Either should work. I would just draw on G0 and save it as a drawing.
1そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian
I think background tiles are grp5, and sprite images are grp4. I was just saying you would want to have a background layout that was purposeful instead of just random tiles.
0そうだね
プレイ済み