I also have another question:
How do I make an object randomly appear on 6 parts of the screen (one at a time) at a different size depending on the part of the screen and then walk across it and dissappear at a different point?
Offline
For the growth/shrinking part of both queastions, experiment with the "Size" block in the looks menu.
For random locations, investigate the "Pick Random" block in the numbers menu, and combine it with the goto command.
Offline
I figured out the answer to my first question. But do you have an idea how I could make it stop at a certain size when getting bigger and when getting smaller?
[blocks]
<when[up]key pressed>
<change size by(2
<when[down]key pressed>
<change size by(-2
[/blocks]
Last edited by RafBern (2007-08-29 16:23:43)
Offline
RafBern wrote:
I figured out the answer to my first question. But do you have an idea how I could make it stop at a certain size when getting bigger and when getting smaller?
[blocks]
<when[up]key pressed>
<change size by(2
<when[down]key pressed>
<change size by(-2
[/blocks]
Just subitute maxsize and minsize for the size limits
[blocks]
<when[up]key pressed>
<if><( <size> <<> <{ maxsize }> )>
<change size by(2
<when[down]key pressed>
<if><( <size> <>> <{ minsize }>)>
<change size by(-2
Offline