For each example below, a server library deals with. For example, bullets in the scene need to detect whether they collide with the enemy, as well as the results of the collision, after,īind a script to the node that needs to be collided, open contact detection in the property inspector, and define a collision function variable in the script, such as onBeginContact, selfColliderRefers to the collision body on the node of the callback script, otherColliderRefers to another collision body that collides. Cocos Creator Event. This is useful for when you have to play sounds according to points the animation like footsteps. In the examples below, we trigger an event named my-event to Channels on a channel called my-channel. In Cocos Creators event delivery system, bubble delivery is used. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |