Hi to all
I’m working on a simple test game and want to place some random tiled sprite in scene with random position and height.
part of positioning objects of my code work o.k, but all objects created in scene are with same height?
I attached three screenshots of preview that show objects created with correct random position and angle but with same size!!
I think if you try to scale your sprite in this way, your ladder will look very distorted! What you should probably do is draw another copy of the same ladder sprite, at the same angle, at an appropriate distance that they look to be linked into one larger ladder.
thanks for reply
since ladder is a tiled sprite, so scaling it wouldn’t make it look distorted,as seen in two preview image already attached.also i want ladders be random size and walkable, therefore i must use tiled sprite with random length(height)
Objects rotate around the centre point, but you can manually move the centre point to a different position.
Double-click on the object in the objects editor panel. In the window that opens click the icon that looks like a + with a square around it. Then click the word Centre in the panel on the right. Anywhere you click with the mouse will now become the new centre point and therefore the new point around which the object will rotate.