Sorry for all these questions but I can’t find the answers anywhere in the docs… Is there any way to retrieve information from a certain object you’ve collided with? I’ve got a function that generates enemies in random sizes. The function is called by a timer every 300ms… Now if I shoot bullets with my plane, the bigger enemy I kill the more score I get, so somehow I need the bullet to collect information from the enemy it has collided with in terms of size. The score is determined by enemySize \* 2.
I have no idea how to do this since I create new sizes every 300ms, if I use the following code local score = enemySize\*2 it will just add whatever enemySize it has generated in the last 300ms and add it as score
All help is appreciated, thanks in advance [import]uid: 14018 topic_id: 5463 reply_id: 305463[/import]