The NN model blocks take a significant amount of memory and CPU on our server, so we have temporarily disabled it. We are investigating a more reliable way to provide that service. Sorry about that.
Group Details Private
Global Moderators
Forum wide moderators
Member List
-
RE: create NN model named () block appears to freeze project disabling Neural Network use
-
RE: What does set dominance group do in 2D physics
You are welcome. There are just too many possible values to show them in a dropdown.
-
RE: What does set dominance group do in 2D physics
Please refer to this article for an explanation of the concept of dominance group for 2D physics:
https://www.forum.creaticode.com/topic/987/dominance-group-in-2d-physics
-
Dominance Group in 2D Physics
Introduction
After 2 objects collide, the 2D physics engine calculates where they would go based on their physics properties, such as mass, speed and restitution. In general, the object with a faster speed or larger mass would tend to “dominate” the interaction, pushing the other object away while maintaining its own course. However, we can change that using “dominance group”.
Set Dominance Group
We can set the dominance group of any sprite using this block:
The new group number can be any value between -127 and 127. By default, every object has a dominance group of 0.When two or more objects interact with each other, the object with a higher dominance group will have a “stronger weight” on the result. For example, if 2 objects collide, then the one with a higher dominance group would maintain its course, while the other object will be bounced away.
Demo
In this demo project, there are 2 sprites, one beach ball and one basketball. When these 2 balls collide, and if their dominance groups are both 0, then both of them bounce back:
However, when we set the dominance group of the beach ball to 1, it will not bounce back:
You can play with this project or modify it here:https://play.creaticode.com/projects/65144b7b78dfe33adbb6e2d8
-
RE: Projects are able to "crash"
Noted. We will make sure proper warning messages are given when invalid requests are received.
Thanks for the suggestion.
CreatiCode -
RE: Projects are able to "crash"
Hi, some blocks may not handle all edge cases well yet, and the specific reason depends on what the block is failing to do.
In your example, the 2D physics block tries to create a circle object to represent the sprite by reading the shape of the costume, and it finds the costume has a width of 0, so it doesn’t know how to proceed in this case.
We will add a guard to prevent this from causing the project to freeze. But bear in mind that even if the project does not freeze, it will still not be successful in this case, since the sprite’s costume can not be empty if we need to add a physics body to it.
Thanks for pointing out this issue.
CreatiCode Support
-
RE: XO Chat isn't working
There was some issues with our XO Chat code. It should be fixed by now. thanks
-
RE: What is wait # frames based on
Hi, the wait block simply waits some time, and the time period can be specified by different units, where a frame is assumed to be 1/60 seconds. It does not account for the actual number of frames since it does not have that information.
If you need to run some code at fixed intervals, a better choice might be this block:
This block will try to run a new iteration by the fixed time interval, no matter how long it takes to finish each iteration.
If that does not work for your project, please share the project with us, and we can probably figure out a working solution for you.
CreatiCode Support
-
RE: Reference a Clone
Yes, that’s most likely due to a timeout from a long idle period.
-
RE: Reference a Clone
Thanks for the project link. That’s an interesting project.
You are right that there is no simple way to refer to the clones when setting the rotation axis. We have just made an update to support it using the format of “sprite name|clone id”.
As shown below, the first clone would link to the sprite named “Rope|originalsprite”, since the original rope sprite’s clone ID is “originalsprite”. The second clone would link to the sprite named “Rope|1”, which is the first clone. The same for the remaining clones.
The demo project is shared at https://play.creaticode.com/projects/650b8f77fe0a145f53bbdaf8