| Blockland Forums > Suggestions & Requests |
| Event Onplayer at a certian velocity |
| (1/1) |
| Crazy ManMan:
I need some kind of on player touch/activate/etc at velocity and then a field for numbers and ranges like 100-103, 13 would make it happen only if the player were going 100, 102, 103, or 13 [whatever units it is supposed to be in]. It would be useful for things like glass breaking. |
| SWAT One:
Can be done with VCE and relays. |
| Crazy ManMan:
--- Quote from: SWAT One on July 13, 2012, 09:51:58 PM ---Can be done with VCE and relays. --- End quote --- Oh okay, I guess I will try to learn how to use VCE. Ty |
| Gen. Hothauser:
--- Code: ---[0] X 0 [onplayertouch] [self] [VCE_ifvalue] [<var:pl:velx] [>=] [13] [1 1] [1] X 0 [onvariabletrue] [self] [VCE_ifvalue] [<var:pl:velx] [<=] [17] [2 4] [2] X 0 [onvariabletrue] [self] [fakekillbrick] [3] X 0 [onvariabletrue] [self] [playsound] [glassbreaking] [4] X 0 [onvariablefalse] [player] [kill] --- End code --- Just thought about it a little, might not work exactly, but it's what I did for the mining function in my City RPG |
| Crazy ManMan:
--- Quote from: Gen. Hothauser on July 15, 2012, 12:43:48 AM --- --- Code: ---[0] X 0 [onplayertouch] [self] [VCE_ifvalue] [<var:pl:velx] [>=] [13] [1 1] [1] X 0 [onvariabletrue] [self] [VCE_ifvalue] [<var:pl:velx] [<=] [17] [2 4] [2] X 0 [onvariabletrue] [self] [fakekillbrick] [3] X 0 [onvariabletrue] [self] [playsound] [glassbreaking] [4] X 0 [onvariablefalse] [player] [kill] --- End code --- Just thought about it a little, might not work exactly, but it's what I did for the mining function in my City RPG --- End quote --- Okay ty I will work with it when I figure out VCE better |
| Navigation |
| Message Index |