i have a feeling this is a complete noob question, but i really didnt find anything about it:
i want to create object randomly on a layer, this works fine enough, no problems.
but i also want to randomly set the size of the object while keeping its proportions. now, i cant find a simple set size action anywhere, i can only find set width and set height, but if i try to randomly set those upon creation, it doesnt keep the sprites proportions, instead, it can make for example width 50pixels, height 90pixels. and id want to keep them both the same amount. is there any simple enough solution i just cant figure out, being noob and all?
also, to make things more interesting, how can i make a random value between two values?
for example if i want to give a sprite a random size between the sizes 50pixels and 90pixels?
small bonus question:
ive been tinkering around with physics hinges, and already made some pretty neat stuff with it, but i still cant figure the basic logic behind hinges.
for example, if i create hinge from sprite a to sprite b, how can i make it so that the sprite b is also stiff? meanin that it would keep the angle relative to what it is upon creating hinge?
do i have to make hinges for both, sprite a and b?
thats all right, but it could get rather tedious when doing alot of hinges together.
if you make a car, 3 parts:
one body, two wheels. you have to make hinges FROM the body to the wheels, and that kind of confuses me. somehow i think it would be the complete opposite.
the mass is also something that puzzles me. if i made a say, simple ragdoll, with torso having the biggest mass, so i could apply force to hands, without it affecting the movement of the torso too much, what happens is that when moving the torso, the limbs that have smaller mass start to sort of act erratic, the hinges wont keep their position locked and they act "rubbery" even though having 100 stiffness.
anyone care to educate me?