如何让播放器从屏幕边缘反弹? [英] How do I make player bounce off edge of the screen?

查看:107
本文介绍了如何让播放器从屏幕边缘反弹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款小型2D游戏,并希望让玩家在离开屏幕时反弹。我怎样才能做到这一点?谢谢!

I'm developing a small 2D game and am looking to make the player bounce off when he is going out of the screen. How can I do this? Thanks!

推荐答案

谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题......



使用部分问题进行快速搜索,因为搜索字词有7200万次点击:< a href =https://www.google.co.uk/search?q=player+bounce+off+when+he+is+going+out+of+the+screen&oq=player+bounce+off+ +他的时候是+会+ +中+画面+出+; AQS = chrome..69i57和放大器;的SourceID = Chrome浏览器和es_sm = 0&放大器,即= UTF-8#安全=关和放大器; q =播放器+反弹+关闭+时+ + + + + + + + + + + + + + + ++Google:玩家在离开屏幕时团结一致 [ ^ ]



将来,请至少尝试做自己进行基础研究,而不是浪费你的时间或我们的。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using part of your question as the search term gave 72 million hits: Google: "player bounce off when he is going out of the screen unity"[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


这篇关于如何让播放器从屏幕边缘反弹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆