Sunday, July 31, 2022
HomeGame DevelopmentCocos creator slot mechanism in sort script - Cocos Creator

Cocos creator slot mechanism in sort script – Cocos Creator


Can anybody assist me with slot mechanism in cocos creator in sort script , any useful resource or web sites

Thanks upfront .


what you imply of slot mechanism?

In the event you click on on the button all 5 photographs ought to transfer up and down .

As soon as undergo you tube you’re going to get thought .

possibly this one is what you need:
https://retailer.cocos.com/app/en/element/3919

Okay, following on from this thread:

I now see what you are attempting to realize. There’s just a few methods to realize this. If doing that is 2D. An actual easy technique is to make it so if you click on spin. You present an animation of reels spinning whereas making ready the three photographs beneath to the randomized circumstances. Then cover the animation for every actual to disclose the right picture beneath.

I made one like this a few years in the past you’ll be able to strive right here:

In the event you needed to make one thing extra advanced I like to recommend trying out the beneath technique.

You may test that out in motion right here, it’s actually spectacular:

If you wish to do that in 3d. I like to recommend making your reels together with your textures on and aligned appropriately. I might then console.log(this.node.getRotation().x) for the right rotation axis of the reel and making word of the place the right alignment is by rotating round manually until the appropriate placement is aligned. I might then rotate the reel including on an increment to get to the right alignment. Getting this to be correct and easy would be the tough half. You could possibly additionally spin the reel randomly and the place the increment lands the reel you regulate to align. I made a 3D one a few years in the past (I now not have it sadly) I feel I’ll have accomplished it with physics by making use of power though getting the alignment proper was very tough, I couldn’t get it fairly good although.

Hopefully this helps.

Thanks



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments