hello,
could sensing provide coordinates and direction of other sprites on the scene?
then it would be easier to construct some games...
for example, I remember students enjoyed educational activity like
http://en.wikipedia.org/wiki/Robocode
where they could build some primitive AI for gameplay
Offline
The way around it is to have the sprite use a variable that is seen by everyone to dump it's current location too
<forever>
<set{ Sprite1X }to( <x position>)
<set{ Sprite1Y }to( <y position>)
<wait( 1 )secsc>
<end>
Last edited by Mike_W (2009-05-23 05:57:52)
Offline
There's a block like that... It's a round sensors block
Offline
MyRedNeptune wrote:
There's a block like that... It's a round sensors block
http://www.imagebeast.net/images/gfsiby … 0ayezn.gif
That's what I would usually do. Before 1.2 this block didn't exist and it was really hard to code - especially for me, because I had no idea 1.2 was out until a few months after I joined. My first few projects were all made in 1.1.
Offline
coolstuff wrote:
MyRedNeptune wrote:
There's a block like that... It's a round sensors block
http://www.imagebeast.net/images/gfsiby … 0ayezn.gifThat's what I would usually do. Before 1.2 this block didn't exist and it was really hard to code - especially for me, because I had no idea 1.2 was out until a few months after I joined. My first few projects were all made in 1.1.
Yeah... But we're on version 1.3 now, and 1.4 coming soon.
Offline