article thumbnail

Noob question about scripting animation

Cocos

But you need to mount the script to the animation component and add the corresponding frame events, you can refer to github.com CocosCreatorHowToUse/proj/Demo/Creator3.7.0_UseAnimationFrameEvents at v3.7.x Of course you can, the inserted frame events can be used as signals to trigger the code.

article thumbnail

Tag to prefab dynamically and intersect in script

Cocos

I want to do this in the creator-type script. count++; demo = Sprite::create(“d1”); demo->setPosition(Vec2(362.399170,831.098450)); demo->setTag(count); this->addChild(demo); if ( this ->getChildByTag(i)->getBoundingBox().containsPoint(location)) This is the Cocos2dx code snippet. Kindly help.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Noob question about scripting animation

Cocos

github.com CocosCreatorDemos/demo/2dP1/Creator3.6.0_2D_CardFlip at v3.6.x x/demo/2dP1/Creator3.6.0_2D_CardFlip Contribute to yeshao2069/CocosCreatorDemos development by creating an account on GitHub. github.com CocosCreatorDemos/demo/2dP1/Creator3.6.0_2D_CardFlipAndQueue at v3.6.x

article thumbnail

Filmustage update: Tag Editor 3.0 & Enhancements

Filmustage

Discover numerous enhancements across Script , Summary , and Analysis tabs, providing a more intuitive and powerful environment to manage your projects. A Leap Forward Bulk Tag Operations : Easily group, edit, or delete tags, revolutionizing your script cleanup process after performing your AI breakdown.

Scripting 121
article thumbnail

How to Make a Tabletop Simulator Demo of Your Board Game

Brand Game Development

I’d like to explain to you exactly how to create a demo of your board game on Tabletop Simulator, but first let’s discuss what I perceive as its five main benefits: 1. How to Make a Tabletop Simulator Demo of Your Board Game. You can create incredibly complex board games with 3D models and Lua scripting.

article thumbnail

Noob question about scripting animation

Cocos

I’m not sure this can help and I have limited knowledge on this subject but you might take a look a this repository → CocosCreatorDemos: 大道至简,殊途同归。 CocosCreatorDemos主要是整理并实现了一些常用的用户需求示例,希望可以给用户提供一些使用灵感。 CocosCreatorDemos mainly organizes and implements some common user‘s needs demos, hoping to provide users with some inspiration.

article thumbnail

D20 RPG – Combatants

The Liquid Fire

It includes a collection of prefabs, scripts and sprites that we can use to play with. They have the same set of animations: idle gesture walk attack death The consistency in setup allowed me to use the same scripts to manage both. Combatant View Open the new script at Assets -> Scripts -> SoloAdventure -> Encounter -> CombatantView.

Sprite 52