Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我的游戏中有一个 2d Platformer Controller,叫做 Jared。他在那:
但我希望他跳起来时他的脸会改变,我会设计一张 Jared 跳起来时的新照片。
但我怎么能真正做到呢?我试过这个,但它没有用......,
def input(key): if key == 'space': player.set_texture(panda3d.core.Texture('new_jared.png'))
我有点新。谢谢你的时间。
player.texture = 'new_jared'
这在文档中有所介绍:https ://www.ursinaengine.org/entity_basics.html