how to put key controls inside of an if so i can only control a sprite with the keys if i recieve a certain broadcast?
plz help if u know how
Offline
bump
Offline
when I receive [controls v] forever if <key [up arrow v] pressed?> change y by (5) end if <key [down arrow v] pressed?> change y by (-5) end if <key [right arrow v] pressed?> change x by (5) end if <key [left arrow v] pressed?> change x by (-5) endIs this what you're trying to do?
Offline
Try this:
when I receive [Control v] forever if<key [right arrow v] pressed?> change x by (1) end if<key [left arrow v] pressed?> change x by (-1) end if<key [up arrow v] pressed?> change y by (1) end if<key [down arrow v] pressed?> change y by (-1) end endEDIT: Wow, AB3, you were 15 seconds ahead of me...
Last edited by amcerbu (2012-07-16 16:38:48)
Offline
go to Sensing and find key space pressed block
Offline
both the same, so thx alot both of u
Offline
u too march
Offline
XXtitaniumfangXX wrote:
u too march
marcin, srry
Offline