In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use Creator to achieve the effect of rolling noodles, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Let me show you the effect picture first.
How to achieve it?
Node introduction
1 is the background image, which can be ignored
2 is the prepared dough
3. The noodles rolled out are hidden first.
4 is the node that needs to be drawn
5 is a rolling pin.
Start production:
First hang a mask on the view and set it to the template mode, and the sprite frame will be set to the rolled cake. This setting allows Mask to mask the content according to the shape of the rolled cake.
Hanging on the walpaper-layer node is a script file I wrote about drawing graphics, and set the relevant parameters. The main thing this script does is use Graphics to draw graphics.
Hang the script provided to me by the Graphics component on the graphics node.
Use a rolling pin to listen for touch events, draw a circle by moving the rolling pin and using the coordinates of the rolling pin (not the coordinates of the touch point), and set the radius of the circle to 80 or more to achieve the feel of the rolling pie.
How can you tell if the noodles are rolled out?
Record the coordinates of nine points of the noodle cake
Judge the point through which the coordinates of the rolling pin go, one by one, and then you can set it to complete.
Finally, hide the painted pattern, dough, and show the previously set cake, and this effect is considered to be finished.
On how to use Creator to achieve a rolling effect is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.