This issue has been fixed.
Posts made by info-creaticode
-
RE: Issue with copy table to table and append table to table
-
RE: Issue with copy table to table and append table to table
We are able to reproduce the issue now. It will be fixed soon. Thank you.
-
RE: Issue with copy table to table and append table to table
When you say you “set row 1 column hi of table a to ‘test’”, which block did you use? Is it “replace item at row [] column []”? We can’t seem to reproduce this issue using that block.
-
ChatGPT blocks no long requires sign-in
We have removed the sign-in requirement for the ChatGPT blocks, so that anyone can run ChatGPT-based projects without logging in, such as this project: play.creaticode.com/projects/1ca634e4193e2b27500be13e
This allows you to build AI projects and share them to anyone to try out, and they won’t have to sign up or log in to try them
Enjoy!
-
How to record and share screen recordings as gifs
Introduction
When you need to explain how a project should work, the best way is to make a screen recording of the stage. This short article will explain which tools you can use to record the screen, and also how to share the gif file to get a URL for it.
Screen Recording on Windows
If you are using a Windows computer, we recommend a free tool named “ScreenToGif”, which you can download here: https://www.screentogif.com/
Here is a short video explaining how to use it: https://www.yo utube.com/watch?v=ELfCBzN1Mtc
Screen Recording on Macbook
If you are using a Macbook, you can use a free tool called “Giphy Capture”: https://giphy.com/apps/giphycapture
Here is a short video showing how to use it: https://www.yo utube.com/watch?v=m-4cJMBGfS4
Share your gif file
Once your gif file is ready, you can share it this way:
-
Go to the “My Stuff” page at https://play.creaticode.com/mystuff, and make sure you are logged in.
-
Select “My Files” tab on the bottom left
-
Click the “+Share a New File” button on the top right
-
In the pop up window, click “Click to upload file”, and then select the gif file from your computer.
-
Click the green button that says “upload and share with the CC Attribution license” at the bottom.
After that, you will see the new file in the list of files, and then you can click “Copy file URL” button for that file, which will copy the URL to the clipboard, which would look like this: https://ccdn.creaticode.com/user-files/BfemEPCxatY6MMAPs/castfireball.gif
-
-
RE: Overlap object detection is bugged or not working
Please refer to this example:
play.creaticode.com/projects/675378ad977fa780536fd819
The idea is that we already know the position of the rope, then we just need to know the position of the player, then calculate the direct distance between these 2 2D coordinates.
-
RE: Overlap object detection is bugged or not working
The 2 objects, “player” and “rope,” are not in the same sprite, so when you run this “overlapping” block in the player sprite, it doesn’t know about the “rope” object. That’s why it is not working.
Also, testing for objects overlapping frame by frame is very expensive. Since you already know the position of the rope, it is much simpler to check the distance between the player and the rope. You only need to calculate the 2D distance between them, and if it is a small number, then you know the player is very close to the rope.
Also, the way you handle the key presses is not optimal. For example, in “when w key pressed”, you have the block to wait until key w is pressed or the object is blocked below. But when the w key is pressed again, this stack will be triggered again. Overall, this will make the project run slowly and not smoothly. Instead, we recommend you use a single forever loop to handle all keys and conditions, but each key press is handled instantly. You can check out this project for an example: play.creaticode.com/projects/66e823b5a634f8ee7d92cc88/editor?version=1
-
RE: Viewing source of sites via fetch block no longer works
This block has been updated:
-
RE: Help and suggestions for my 3D skate game -- Skate Free
Thanks for sharing your project. Here are some high level comments:
-
You can not mix 3D physics blocks and “set speed” blocks. If you are controlling objects using the 3D physics engine, you have to delegate all movements to the engine, and only use blocks in the “3D physics” category to make objects move/turn.
-
We can’t add the animations you requested since they are not available in the mixamo.com library. You will have to use the animations available now.
-
For specific questions on individual blocks, can you please try to ask XO first?
-
-
RE: Viewing source of sites via fetch block no longer works
We can add an option to return the page content as markdown or html.
-
RE: Fast Sync Variables Lib
Yes, comments would be helpful. Also, you might want to clean up the blocks so it’s easier to read.
BTW, your code does not create or join any multiplayer game. Is that done separately?
-
RE: Fast Sync Variables Lib
This is a great idea. Thank you for sharing.
Can you explain a bit more how it works internally? Most people are not familiar with the multiplayer blocks, and this can be a good example for learning about them.
-
RE: Viewing source of sites via fetch block no longer works
This block currently should already work for simple static sites like
https://www.google.com/search?q=dog
We will look into the issue with indeed.com, but most likely it won’t work for such sites that have checks for bots.
It would also not work for the “view-source” URL, since it expects the input starts with “http”
-
RE: Updating an object's X, Y, and Z directions in a 3D scene using variables
Here is an example project for setting the diretion/speed of a 3D object, then read its direction/speed using the object property reporter block:
-
RE: Object Locking -- Costume Creator
In the costume editor, you can hold down the SHIFT key, then click any shape to select or deselect by itself, while keeping the other selection unchanged.
-
RE: Object Locking -- Costume Creator
In this case you can temporarily copy the transparent part to another costume.
-
RE: Object Locking -- Costume Creator
Can you do multi-select then de-select those? It appears this feature is only useful when there are many shapes in the costume. Do you have any example project?
-
RE: Clone animations
You can try to unhide the basic sprite and trigger this stack of blocks manually, and you should see the animations. If you are not seeing the same animation in games, then it must be due to other reasons.
You might want to read about how to debug here and try these techniques:
-
RE: Clone animations
This code appears to be correctly updating the costume repeatedly. What’s the issue you are having with them?
-
RE: Onion Layering -- Costume Creator
Thanks for the suggestion. We’ll research how to do that.
-
RE: Clone animations
Your project is still private. And can you also specify which sprite is having this issue?
-
RE: Clone animations
Can you post your project link? And can you give some more details on what you want to achieve? For example, do you mean “when a new clone is created, it starts a new animation that’s different from others”?
-
RE: Block Request
To be more generic, maybe we can add a new block like “update scale x [XSCALE] y [YSCALE] with anchor x [LEFT/MIDDLE/RIGHT] y [TOP/CENTER/BOTTOM]” block?
Then you can create many similar effects with some simple coding.
-
RE: widgets hat blocks stopped working?
That hat block only works on some widgets, not all widgets. For example, you are using it on labels, but labels are not meant to be clicked, so they don’t trigger the click event.
-
shake screen
Introduction
You can now make everything on the screen (the stage and all sprites) shake like this:
Note that this only works for 2D projects.
The Shake Screen Block
The shake screen block is in the motion category:
It takes 3 inputs:- Duration: how many seconds to keep the shaking effect
- Frame Rate: how many frames per second. In each frame, the whole stage and all sprites are randomly shifted to a new position.
- Magnitude: This is the maximum distance the screen may be shifted in both the x and y direction. For example, if magnitude is 20, then for any frame, the screen can be shifted left or right, up or down, but never more than 20 units from the center.
-
RE: Shake screen
Some details need to be discussed. When the screen is shaken, do we simply move every thing (including the backdrop) left and then right? If we move everything left, then there will be a gap at the right edge (assuming viewport is not used). Do we fill that gap with white or black color?
-
RE: Coding questions
Please check out the new joystick blocks we have just added:
https://www.forum.creaticode.com/topic/1651/virtual-joysticks-for-user-input
-
Virtual Joysticks for User Input
Introduciton
You can now add joystick-style user controls for your 3D games, which is a natural input method for users on touchpads and smartphones.
Note that this new feature only works in 3D projects, and a 3D scene must be initialized first.
Add a Joystick
A virtual joystick is made of 2 parts:
- A “base” that is composed of 2 circles. Whenever the pointer is pressed down, the base will not move as the pointer is dragged around it.
- A “puck” that is a smaller circle with a dot at its center. It shows the current position of the pointer relative to the base.
You can add a new joystick using the following block:
The inputs are:- Left or Right: you can add a left or right joystick using this block. The left one only covers the left half of the screen, and the right one only covers the right half. Use this block 2 times to add both joysticks.
- Color1 and Color2: These two color inputs control the colors of the base and the puck.
- Scale: This is a scaling factor that controls the size of the virtual joystick. By default, it is 100, which means 100% of the default size. If you would like to double the size of the joystick, you can set this value to 200.
Read joystick properties
You can read the properties of a joystick using this reporter block:
It has 2 inputs:- Side: left or right
- Property:
- x or y: the position of the puck relative to the center of the base. Note that both x and y are between -1 and 1. For example, if the puck is at the right edge of the base, then x will be 1 and y will be 0.
- dir: the direction of the puck relative to the base in degrees, which is between -180 and 180.
- Distance: the distance of the puck from the base between 0 and 1.
- pressed: whether the joystick is pressed down. 0 means not pressed down, and 1 means it is pressed down. This should be the first value to check, since if the joystick is not pressed down, then all the other properties are not valid.
Remove all joysticks
You can use this block to remove all the joysticks you have added so far:
Demo
In this demo program, we first add a 3D glass object, then add 2 virtual joysticks of different colors and scales. Then we enter a forever loop: whenever the left or right joystick is pressed down, we read its properties into a few variables, and also rotate the 3D glass based on the “dir” property:
Here is the project link: -
RE: Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"
Can you please reload the page, and make sure you are logged in, and then try XO again? We have made some improvement to XO, but we are not sure if they would resolve your specific issue. Thanks
-
RE: buttons overflow out of "prompt() with buttons ()()()()()" block
We will fix this issue. Thanks
-
RE: Can’t sign in
We found that you can not log in because your guardian has not approved your account yet. They need to click the link in the email they have received.
-
RE: Can’t sign in
If you can’t use email, we can’t tell you the updated password.
Can you reload the page, and try to login again? And if it doesn’t work, can you post a screenshot?
-
RE: Can’t sign in
Please try to update your password using this link: https://play.creaticode.com/forgot-password
If you still can not get it to work, please email info@creaticode.com, and we will update your password for you.
-
RE: Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"
Actually, XO only works when you are logged in. Can you verify you are logged in when you get the error message?
-
RE: Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"
Thank you. We’ll look into this new error.
-
RE: Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"
I get no issue now. Can you reload the browser page and try again? If it is not working, please paste a screenshot again. Thanks
-
RE: Coding questions
@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.
-
RE: Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"
Can you post the project link? Also, have you reloaded the page? It will need a reload to pick up the changes.
-
RE: Coding questions
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: