Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

SET BOUND BOTTOM AND TOP

$
0
0

I use this function to set bounds  

this.game.world.setBounds(0, 0, gameOptions.gameWidth - 20, gameOptions.gameHeight - 20)

But this only set bound from bottom to top.

What i want to do is set the top and bottom bounds to stop my character from walking on the sky

 

image.png.67885c2f4b5798d5955adf32df0d035d.png


Viewing all articles
Browse latest Browse all 623

Trending Articles



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