Oh okey! Just got it to work but seems like nothing came up in my game?
http://www44.zippyshare.com/v/80924557/file.html
Here is the update, Did i do something wrong?


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | if shield is not active { if not fully charged { add more charge if fully charged { set charge to maximum value set bar 'Ready' } adjust bar } else { if 's' key is down { activate shield; set bar 'Discharging' } } } else { take some charge if no charge { set charge to zero deactivate shield set bar 'Charging' } adjust bar } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | if not active shield { if charging { add some charge if fully charged { set strength to maximum value set not charging set bar green } adjust bar } else { if 's' down { activate shield set bar orange } } } else { if not 's' down { deactivate shield set bar green } else { take some charge if charge is gone { set charge to zero deactivate shield set charging set bar red } adjust bar } } |