This site requires JavaScript, please enable it in your browser!
Greenfoot back
Zinks2
Zinks2 wrote ...

2015/9/21

Bombs

Zinks2 Zinks2

2015/9/21

#
Hi- I'm quite noobie when it comes to coding, and i'm trying to programme a bomb-special ability that is an AOE. The only solutions i can think of is to A.) Create a new sub-class called AOE that is spawned when the projectile hits an enemy and only lasts 5 frames. B.) Make the projectile spawn several smaller projectiles that move in different directions. I have a few ideas on how to do this, but i would really appreciate ideas/better solutions. Thank you!
danpost danpost

2015/9/21

#
There are multiple ways to program something like that. Each has its own limitation, advantages and disadvantages. Some require more actor objects, which may be more realistic, but may cause lag. One would be to use just one actor and animate it by giving it different images to show the spreading of the particles (sort of like what the Explosion class does).
Zinks2 Zinks2

2015/9/24

#
Thx!
kmckenzie kmckenzie

2015/9/25

#
Thanks!
ryanspiecha ryanspiecha

2015/9/25

#
THANKS BRUH!
racket2000 racket2000

2015/9/25

#
BOOM BABY ♥♥♥
cnoltimier cnoltimier

2015/9/25

#
thanks
canthandelme canthandelme

2015/9/25

#
Thanks!
Azaharoff Azaharoff

2015/9/25

#
Thank you
Clohman Clohman

2015/9/25

#
.
Arbiter Arbiter

2015/9/25

#
NO THANK YOU
Bubbless Bubbless

2015/9/25

#
nope
You need to login to post a reply.