You are viewing a single comment's thread from:

RE: Tutorial (Godot Engine v3 - GDScript) - Generic screen wrapping Node!

in #utopian-io7 years ago

Note to any reader. IF you use this generic Node and utilise Godot's excellent 2D Aspect Ratio stretching capabilities, you will need to swap out the get_viewport().size and replace with projectSettings retrievals of the screen size! I'll post an update to this one.

I'm just adding this to the 'Space Invaders' clone tutorial and stumbled on my mistake! Forgetting that get_viewport provides its size, not the original screen size; which I intended!

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 59880.83
ETH 2301.55
USDT 1.00
SBD 2.50