Please refer to this forum post for details on the latest suggestion platform.
Currently, only exists the ' Start/Stop ignoring user input ', It is very helpful in many times. However, when I want to judge whether it is user input is ignoring , I have to add an extra variable to judge, which is very tedious.
When I press the left and right arrow keys, the PlayerGraphics set mirrors.
+ Keyboard: A is down |
-> PlayerGraphics: Set Mirrored |
-> PlayerCollision: Simulate Platform pressing Left |
+ Keyboard: D is down |
-> PlayerGraphics: Set Not mirrored |
-> PlayerCollision: Simulate Platform pressing Right |
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":65}}],"actions":[{"id":"set-mirrored","objectClass":"PlayerGraphics","parameters":{"state":"mirrored"}},{"id":"simulate-control","objectClass":"PlayerCollision","behaviorType":"Platform","parameters":{"control":"left"}}],"isOrBlock":true},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":68}}],"actions":[{"id":"set-mirrored","objectClass":"PlayerGraphics","parameters":{"state":"not-mirrored"}},{"id":"simulate-control","objectClass":"PlayerCollision","behaviorType":"Platform","parameters":{"control":"right"}}],"isOrBlock":true},{"eventType":"block","conditions":[{"id":"key-is-down","objectClass":"Keyboard","parameters":{"key":87}}],"actions":[{"id":"simulate-control","objectClass":"PlayerCollision","behaviorType":"Platform","parameters":{"control":"jump"}}],"isOrBlock":true}]}
If I have this condition, I don't need to add an extra variable to manage it.
Is ignoring |
||
+ Keyboard: A is down |
-> PlayerGraphics: Set Mirrored |
|
-> PlayerCollision: Simulate Platform pressing Left | ||
+ Keyboard: D is down |
-> PlayerGraphics: Set Not mirrored |
|
-> PlayerCollision: Simulate Platform pressing Right |