Pages: 1
Topic closed
A lot of the beginning projects I see often use this kind of simple sprite control:
when [Up Arrow v] key pressed point in direction (0 v) move (10) steps when [Down Arrow v] key pressed point in direction (180 v) move (10) steps when [Right Arrow v] key pressed point in direction (90 v) move (10) steps when [Left Arrow v] key pressed point in direction (-90 v) move (10) stepsProbably because it's in some of the sample projects and it's easy to understand.
when gf clicked set [Speed v] to (4) forever if <key [Up Arrow v] pressed?> point in direction (0 v) move (Speed) steps end if <key [Down Arrow v] pressed?> point in direction (180 v) move (Speed) steps end if <key [Right Arrow v] pressed?> point in direction (90 v) move (Speed) steps end if <key [Left Arrow v] pressed?> point in direction (-90 v) move (Speed) steps end end
Last edited by Paddle2See (2012-02-08 18:40:31)
Offline
Actually TRocket, he did it just fine. Technically it's supposed to be like this:
when gf clicked set [Speed v] to (4) forever if <key [Up Arrow v] pressed?> point in direction (0 v) move (Speed) steps end if <key [Down Arrow v] pressed?> point in direction (180 v) move (Speed) steps end if <key [Right Arrow v] pressed?> point in direction (90 v) move (Speed) steps end if <key [Left Arrow v] pressed?> point in direction (-90 v) move (Speed) steps end end
Last edited by Magnie (2012-02-08 15:53:00)
Offline
Awesome.
Offline
Wow, my first ever project used the method with the hat blocks :') It's really annoying when I find a project which would he awesome, but it uses the method with the hat blocks, so then you can't move properly :l
Offline
Magnie wrote:
Actually TRocket, he did it just fine. Technically it's supposed to be like this:
Thanks
Fixed.
Offline
Great tutorial! In many New Scratcher projects, I see the basic jump down"formulae" and the sprite hangs in mid-air. I'm sure it was based on a sample project, where the sprite hangs in mid-air and drops down again?
Offline
Good guide, this should come in handy for New Scratchers!
Offline
This will be very helpful to new scratchers.
Offline
Topic closed
Pages: 1