プレイ日記
Dragonborn littleceacers
does anyone know how to move sprites? like with the circle pad? cause i am used to petit computer.
5そうだね
プレイ済み
返信[1]
親投稿
MYCRAFT MYCRAFTisbest
STICK OUT X Y will store the X and Y position of the circle pad in X and Y The easiest way to move a sprite with it would be STICK OUT X Y SPOFS ID OUT SX,SY SPOFS ID, SX+(X*4),SY-(Y*4) This allows for different speeds! STICK usually ranges from 0 to .8, so *4 makes it from 0 to 3.2 Y is inverted, which is why I subtracted it, as the result is generally inverted to what you expect.
0そうだね
プレイ済み
返信[2]
親投稿
Dragonborn littleceacers
When I try to move it, the Sprite either flies off the screen and won't return, or it goes back to its original position. Any help here?
0そうだね
プレイ済み
返信[3]
親投稿
MYCRAFT MYCRAFTisbest
Make sure you have a VSYNC in there. Not sure why it would go back to it's original position, but that would explain the flying off the screen bit
0そうだね
プレイ済み
返信[4]
親投稿
Dragonborn littleceacers
It works thanks. Now I just need help with Sprite collision and Sprite rotation if going left or right.
0そうだね
プレイ済み
返信[5]
親投稿
Dragonborn littleceacers
Or at least if I go left, my Sprite faces left and vice versa. Also I need help with animating the Sprite
0そうだね
プレイ済み
返信[6]
親投稿
MYCRAFT MYCRAFTisbest
Animation is pretty annoying to explain, but sprite on sprite collision isn't too bad SPCOL ID,TRUE 'For every sprite that can collide SPCOLVEC ID 'For every sprite that can collide, only use after SPCOL SPHITSP ID 'If the sprite with that ID collides with any other SPCOL sprite, then true, else false SPHITSP ID,RangeMin,RangeMax will only collide with sprited between the ID range provided.
0そうだね
プレイ済み
返信[7]
親投稿
MYCRAFT MYCRAFTisbest
If you're looking for a lot of help, go to SmileBASICSource. It's a great community and can be very helpful as well as just overall fun. If you're familiar with the Petit Computer Wikia, this is the SB equivalent.
0そうだね
プレイ済み
返信[8]
親投稿
Dragonborn littleceacers
im so confused. i just want a simple game where you control a ghost through a small maze
0そうだね
プレイ済み
返信[9]
親投稿
Dragonborn littleceacers
I'll visit the page then for help
0そうだね
プレイ済み