image is, say, located between points 100(X),100(Y) and 200(X),200(Y), you can check and see if that space was tapped by doing this:
IF TX>100 AND TX<200 AND TY>100 AND TY<200 THEN GOTO @IMAGE
Hope I helped!
Yep, pretty much that. The TOUCH OUT command will assign different TOUCH values to variables. the TM variable will receive the amount of frames the screen has been touched for, the TX variable receives the X position of the touch, and TY receives the Y position of the touch.
After TOUCH OUT, you simply want to see if the touch coordinates are within the space you want to tap, so if your...
Replying to your closed discussion, you need to use DISPLAY 0 to move back to the upper screen. If you want something to appear on both screens, you need to do something like this:
XSCREEN 2
PRINT "TEXT"
DISPLAY 1
PRINT "TEXT"
DISPLAY 0
This code will turn on the proper screen mode, PRINT the text on the upper screen, switch to controlling the bottom screen, PRINT the text again, and...
Here's how it looks with the 3D off. If you view the above image without 3D, it looks really weird since it still uses one of the "eyes" of the 3D image.
Also a quick tip, instead of using BUTTON(2)==#, use BUTTON(2) AND #
Using AND instead of == allows buttons to still function even while others are being pressed!
I think if it says there's a break, it just means the program was stopped on that line. I do notice though that you're trying to use BTRIG, which isn't used in SmileBASIC. The equivalent is BUTTON(2). Also, 1024 is an unused button value, and START or SELECT both end the program, so they cannot be used except for being held down when a program starts.
can't think of a good way.
If you connect two systems together and try to send an image without notating lines 57 and 58, you will see the receiving system fill up with 0s, before ending with an error from sending too much info too fast.
Anyone who wants to can fiddle with this, I'd love to see a good Pictochat app!
If you notate lines 57 and 58, you can see the image get copied to the upper screen when you tap the upper right portion of the bottom screen (This is where the SEND button would be), and shows that you can copy images into an array and then redraw them using said array. If anyone can find out a good way to send an array to another user, this should be able to work fine, but at the moment I...
Hmm, it might not be as easy as I thought... I took a look at the local wireless commands, and it seems the only way to transfer data between devices is through strings. I can't seem to figure out any way to transfer images in a reasonable amount of time. (I'm storing them in ARRAYS, btw) Here's a download code for what I have so far, if you want to mess around with it: [4KSKYDAS]
^^Yeah,but you literally only had a 16x16x2 (Yes, you could only build up 2 blocks high) space to build in, and it ran at like 10 frames per second. It was a cool tech demo, that's for sure, but it wasn't any fun to play. It could obviously be done better now in SmileBASIC, but I still don't think it's powerful enough to run an actually fun version of Minecraft.
I mean, probably, yeah, but it would take *ages* programming what every single word translates to. Really I don't see any point since there are already plenty of great translation apps on mobile devices we can carry around.