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

2014/5/20

Splitting Asteroids Problem?

Kamacuras Kamacuras

2014/5/20

#
Greetings, i am currently trying to create shards of an asteroid after it has been destroyed in my game for college, however i have encountered a problem in which it doesn't work. My thoughts for this mechanic is that when the asteroid is intercepted by the asteroid it will break into 2 separate and different images and continue to move across the screen. I have a Class with Asteroids and a sub class of Large Asteroids and then shards but i cannot get it to work. How would i achieve this coding wise? Thanks in advance!
davmac davmac

2014/5/20

#
Your question is vague. Like any task, you need to break it down into small steps, and then express those steps using the programming language.
My thoughts for this mechanic is that when the asteroid is intercepted by the asteroid
Is this what you really meant to say? How about you start by describing what you want to happen, in numbered steps? (And then explain which of these steps you are unable to write code for!)
You need to login to post a reply.