How would you, on left mouse button down, make an object you click on with the mouse jump in any of 8 random directions? And jump at least 4 pixels? When it jumps outside the view, it's destroyed?
Would it be like this?
jump=rand(8);
Then use timer ...
Code: Select all
if(jump==0)
{
//jump 1
}
if(jump==1)
{
//jump 2
}
and so on...
?
for the randomness part?
Is there anyway to change the background to a solid color without using a background graphical actor?
I've tried searching both these topics but can't find anything exaclty what am looking for.