Giter Club home page Giter Club logo

Comments (5)

woct0rdho avatar woct0rdho commented on May 18, 2024

对话框移动可以看Assets/Resources/Scenarios/test_box_anim.txt(目前还是比较麻烦的),淡入淡出等等更多动画效果我们还在考虑,接下来一两个月里应该会做

你可以说一下具体想做什么动画效果

from nova.

YuZhenlol avatar YuZhenlol commented on May 18, 2024

1.对话框出现的时候有一个卷轴展开的效果
2.主角说话的时候会在对话框左侧显示头像,其他人说话时主角头像变为半透明并向左侧平移一点(本来打算用立绘的动画功能实现,但是会被对话框挡住)

from nova.

YuZhenlol avatar YuZhenlol commented on May 18, 2024

思考了一个办法,先在unity里做好ui的动画状态机(独立于nova里的dialougeBox),然后用一个脚本读取nova里的一个变量来控制状态机,这样就能在剧情脚本里修改变量控制ui动画,这样是否可行。
如果可以的话如何获取nova里的变量。

from nova.

YuZhenlol avatar YuZhenlol commented on May 18, 2024

因为在动画进行的时候都是没有文字的,所以不需要考虑文本的显示问题

from nova.

woct0rdho avatar woct0rdho commented on May 18, 2024

对话框出现的时候你可以在DialogueBoxController里做一个函数来播放卷轴出现的动画,然后在dialogue_box.lua里的set_box里调用这个函数

主角说话的时候你可以把“主角头像变为半透明并向左侧平移一点”的动画做到AvatarController里(界面布局比较复杂的话也可以做到DialogueBoxController里),然后在avatar.lua里的add_action_before_lazy_block里根据name来判断调用这个函数

from nova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.