Is there a way to set bullet range during runtime? for example: player starts with bullet range of 150 pixels. Player grabs a powerup that increases the range to 300 pixels. I cant find it, is there a way?
Probably with some math. If you want to avoid that though, maybe make an invisible ring around the player? Then just resize it if they get a power up.
yeah that would be a good alternative but through the bullet behavior I dont think theres a way
You could make two different bullets.
make your own range variable that can be controlled:
always add 1 to private value of bullet 'bulletvalue'
if 'bulletvalue' = 'customrangevalue', do action
set 'customrangevalue' with the powerup. larger that value is, the longer it will last -- similar to range.
here's an example .cap:
Develop games in your browser. Powerful, performant & highly capable.
heh thanks for the help, cant believe I asked about something so trivial as this, staying up late does that to you