well my mom took it away yesterday cause she thought I was playing on it when I wasn't supposed to (which I WAS NOT) but she thought I was cause I jumped when she came in my room, but I jumped cause all the heat leaves my room when you open the door and theres a big burst of cold wind that comes in, and I accidentally left my 3ds running.
so she took it away, then today she said I could have it back after I did my school and stuff, but during that time she said I yelled at her, which was only because she could not ear me (I have one of those voices where if you talk louder it sounds like your yelling)
but she thought I was mad for some reason, so now its tomorrow after I do all my stuff.
and now that you know all of that stuff which I just realized that it really probably waisted your time (sorry btw) she will probably come up with some other reason for me not to get it back tomorrow..
unless she decides to be nice for a change.....
well you will find out soon..
I know exactly what you are feeling right now. my voice is the same, and it wasn't really a big waste of my time, I'm on miiverse cuz i'm bored right now.
well i got up and did ALL my school right away and finished in about an hour and a half, then guess what? my mom dident believe me and went and looked through my school, of course she found it was all done, she was kinda mad and really surprised at the same time.
so she gave me my stuff back (yay).
i can go see about the sprite stuff now.
sorry for the delay.
only if you dont put the management number (you know what that is right?)
but you can do like if blah blah collide with blah then spclr 1 (or whatever number it is)
of course adding the +1 money or whatever.
sorry, there have been a lot of people lately who dident know so was just making sure,
now mine has problems.. they dont stay put on the map..
they stay stuck on the screen when i move.. (im using BGOFS btw)..
i gtg
ill be back after i eat..
well maybe by taking out the INC MONEY at the end..? idk what that does.. and as for the idea you gave me, the BGOFS is so the map moves when you move, its basically the same but instead of the sprite moving the map moves and sprite stays in the middle of the screen
so i need to recreate this by doing the opposite.. or the same but keep the sprite from moving..
What I did was
MONEY=10
PRINT "MONEY:" MONEY
and so if you INC (increment/add one) MONEY when you grab the coin, it will show 11. (if that dosen't make sense, I can try to make it sound simpler)
No, I haven't been able to figure out the SPCLR thing. But when you buy an upgrade it takes away the money just fine. So i know the money isn't the problem. (I don't have a computer to go on smilebasicsource)
what about my face?
and i know what jsyk means, duh its: jumping sick yak king.
#randomfactofthedaythatnobodyneedstoknow
i actually made a boar pit in my game.
Back to the SP stuff.
I'm looking through the sp commands, and there's SPHITSP, it sounds like that's what i need to use, but it says that i have to use SPCOL first, but i can't figure out what to do for it. (It's explanation is a nightmare) º_º
SPHITSP
SPHITSP checks for collision between sprites.
Check collision between one sprite and any other sprite:
CollisionID = SPHITSP( ID )Check collision between two specific sprites:
CollisionID = SPHITSP( ID1, ID2 )Check collision between one sprite and a range of other sprites:
CollisionID = SPHITSP( ID, LowID, HighID )
copyed from sbs, 7 posts left btw
yeah here
SPCOL
Before using any of these commands, you must enable collision detection using SPCOL.
SPCOL ID
If you want collision detection to work on SPSCALED sprites, you must do
SPCOL ID,TRUE 'BEFORE using SPSCALE
You can also set a collision mask:
SPCOL ID,TRUE,Mask
Sprites will only collide if their masks have some of the same bits set.
&B100 will collide with &B111 but not &B001.
Ok, I've only got 1 post left after this, so i'm going to take everything that i learned from this and see if it works. If it does work i'll probably make a new post about making progress on this game. If not i'll come back here or maybe make another post to try and get another persons (not you) help. (you can still help if it dosen't work). But it's like 11 PM where i live, so i'm going*next post
ok bye, its like 10 where im at..
yeah, and this really caught me as I was procrastinating on making my money system, now its almost done..
ill see what happens tomorrow.. bye
yee
Part 1 of 3: I fill the background, set up the sprites, and make a main loop. Note the use of spfunc. This allows you to create a function that is called for the sprite on each time through the main loop. The call sprite line in the loop makes sure everything gets called. Also note spcol so the sprites participate in collisions. I made it so you win the game when the coins are all collected.
Part 2 of 3. This shows the win state dialog and moving the player around in response to the D Pad. Note the use of Min() and Max() to limit the player to locations on screen.
Part 3 of 3: This is the part you were asking about. The coin checks if the player collided with it. If so, we play a sound, decrease the coins remaining and add to the score. After that we release the sprite from use. I also have a function for drawing the score on screen that is overdone. I use gputchr so I can use gprio to put it over top of the sprites and background.
DEF lets you make user defined funtions. They can contain parameters and optionally return results. You can also define variables belonging to just that function. With user defined functions you can do recursion too. Basically like Gosub but much much better. I recommend user defined functions over gosub in virtually in every case.
on my game, making the sprite jump, so I have to make it stop gravity when hitting the tile but start again when off the tile also make a code to slow the sprites speed completely within a very small time because if it goes too fast it will be very bad.
that's the easiest way to explain what im doing, but its a lot more than that..
Thanks, btw there is this guy and I commented on his post telling how inappropriate it was, he is going nuts because I proved him wrong on something. (he's very racist)
Q34443GD is my samples folder. If you are trying to do platform style jumping check out the program PLATFORM in there. It is super mario brothers type stuff. Never did get all the bugs out however. You may be interested in slimebump2 in there as well. P.S. I like the glasses. I may update that project some day so get it while the code is valid.