The IFs are to check where it is. With four IFs, you can check if a point is in a box by using >= <= . This might be a little too complicated, so here's an example.
IF X >= 0 THEN
IF X <= 0 + 32 THEN
IF Y >= 208 THEN
IF Y <= 208 + 32 THEN
Yep! The point is inside a box in the lower-left corner!
RETURN TRUE
endifs... lol
RETURN FALSE
END
oops...
DEF CHECKTOUCH parameters you need to make it reusable
TOUCH OUT TX,TY,TM
a bunch of IFs that take into account the parameters
RETURN result
END
Picy: You should be able to use TOUCH by now. You just need to check if the screen was touched in a certain area using a bunch of IFs. I recommend making a function so that you don't need to type in a bunch of code over and over again.
DEF CHECKTOUCH
TOUCH OUT TX,TY,TM
a bunch of IFs
END
ROCCO: You should make a discussion about this instead of just commenting on someone else's post.
In short, it's a dev tool for creating pretty limited games (compared to the actual capabilities of a 3DS) using a programming language called SmileBASIC, which is also the name of the app. It has been out for 2-3 years, IIRC.
DON'T USE LABEL LOOPS!
Use WHILE:WEND or REPEAT:UNTIL loops.
Label loops are bad coding practices. They do not make as much sense as regular loops to the untrained eye, and do not make use of the label feature correctly.
WHILE TRUE <- You can set a condition so that this loop will only run if and during when it is true.
You can use CONTINUE and BREAK here, which can't be used in label loops.
WEND
hb hags does not need a special card lol
that's the bad hags that costs money
all you need for real hags is an sd card and files on it, and a launcher
you can get the files and information on the various launchers by googling it.
Put this in after your sprite initialization:
SPLINK (hpbar), (enemy), -30, 0
also make sure you've SPHOMED the origins of the sprites to their centers.