Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | qazwsx | |
Old Version | Published before Godot 3 was released. |
I am trying to make a grid of clickable objects (Area2D) that contain AnimatedSprite and CollisionShape2D.
I created Scene which represents Cell in the grid and then added the Cells to Grid in main scene from GDScript. Unfortunately I noticed that all the Cells are located in the same position (despite how many columns are set).
I have also tried to do the same with Sprite and other objects from Node2D and the effect is the same. Can you point me what I am doing wrong or eventually provide the correct pattern how it should be done? See below minimal example (tree) that represents the issue:
Each sprite has texture that contains some number. When I run the program I see only the Sprite that is on the bottom under the GridContainer (Sprite3 - which has number “2” on white background). The rest of the Sprites are behind it. See below.
Is this for gui element or for the game itself?
puppetmaster- | 2016-08-12 14:31