Quantcast
Channel: Questions in topic: "power up"
Viewing all articles
Browse latest Browse all 49

Temporary boost

$
0
0
In my 2D vertical platformgame i want to give my player a temporary jump boost. im thinking something like. if(hit.gameObject.tag == "Boost") { **var jumpheight =*2.0;** yield.WaitForSeconds(5.0) destroy() But im not sure how to put this in code.

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>