Coding questions
-
How do I make a joystick with widgets? (I don’t have a pc or computer) CreaticodeXO didn’t work so well, so could you help me plz?
-
Can you explain what kind of joystick? Do you have an example or a picture?
-
@info-creaticode it’s supposed to be a joystick that works and shows on 3d scenes.
-
@thebrickmaster626-f522560b I like the idea, I guess you could make a draggable widget with limits so you can’t drag it too far and end up breaking the joystick, and then make like a 3d character and/or camera constantly move (with a forever block) to whatever direction the joystick is in, which might be hard because you’ll have to do some math or complex calculations.
Or maybe instead of a joystick, you could do what older Minecraft bedrock did and make arrows to move
CreatiCode and Scratch in general isn’t all that mobile/touchscreen friendly so if you have an iPad or something I recommend buying a bluetooth keyboard and mouse and using it to use creaticode and it will make ur life so much easier.
-
Can you show a picture of what you are thinking? You can draw it or google a screenshot, so we understand what you are looking for.
In general, you can add buttons like these to allow for user controls, which works on mobile as well:
-
@info-creaticode idk how to send images in chat
-
@jeffreyrb03-gmail thx for the idea
-
@thebrickmaster626-f522560b You’re welcome! Also you can hold press or right click on a picture like from google or something and then touch “Copy Image” and then here in the text area press “Paste” to put an image or also upload an image, the button to do it is at the end of all the other buttons when ur making a post/reply
-
@jeffreyrb03-gmail joystick img:
Thx to Griffpatch on scratch mit website for joystick tutorial on yt -
@jeffreyrb03-gmail btw the joystick is for my 3d car game on my iPad. I will send you the project when it’s done.
-
Maybe this is a good example? When you go to our home page at creaticode.com, you can use pointer or mouse to press down on the 3D scene of the car, and you will see a circular cyan input control:
-
@info-creaticode Could you guys make an individual tutorial that just shows how to make a widget joystick like that and make it control things like movement or camera for a 3d object? And also how to do things like find what angle (in degrees) the joystick is being pointed at, and how far it’s being pointed, which would just be the distance of the joystick circle to the center of the bigger circle.
I struggle with CreatiCode’s 3d features a bit because the coordinate system of XYZ isn’t the XYZ system I’m used to, where Y is up and down, X is left to right, and Z is front to back. Im also a bit unfamiliar with v-angle and h-angle but that’s not too bad. It would be a big help, thanks!
-
@info-creaticode that’s a good idea! But is there a tutorial, code, or an example project that I can use?
-
@thebrickmaster626-f522560b @jeffreyrb03-gmail
We will provide some tutorials on this. It will take some time since this is an illustration, and it is not supported yet.
-
@info-creaticode okay! Let me know when it’s done!
-
@thebrickmaster626-f522560b I already have a two joystick system already made, you get the direction and distance each joystick is from the center of it’s thingy, https://play.creaticode.com/projects/673b45dab08c383c7eea0609
edit: you have to broadcast “Mobile Controls” to start it
-
@tyller_ thx, but does it work on 3d scenes?
-
@thebrickmaster626-f522560b no, I’m not sure how to display stuff over the 3d scene like the home screen project
-
@tyller_ I figured out that widget display on 3d scenes, so could you please make one with widgets? Also I only need one joystick to move the car around.