Hi all, thanks a lot for the help so far. I'm still struggling with types and functions...
Anyway, that's the question:
Assuming that I have a type 'enemy' that can shoot, and a type 'bullet', as:
And I want to access to both in the same function or For...Next loop, i.e. the one that creates the bullets:
This will also allow me to check the entity distances without checking for collisions (assuming that the enemies can shoot each other), as:
Is that possible (or at least something like that)?
Thanks
Paolo
Anyway, that's the question:
Assuming that I have a type 'enemy' that can shoot, and a type 'bullet', as:
shooting.enemy=new enemy shooting entity= blah... blah... blue.bullet=new bullet blue.entity=blah... blah..
And I want to access to both in the same function or For...Next loop, i.e. the one that creates the bullets:
function createbullet() for blue.bullet=each bullet positionentity blue\entity, entityX(shooting\entity), entityY(shooting\entity),entityY(shooting\entity) ...blah...
This will also allow me to check the entity distances without checking for collisions (assuming that the enemies can shoot each other), as:
for blue.bullet = each bullet if entitydistance (blue\entity, shooting\entity) < 1 then ...blah...
Is that possible (or at least something like that)?
Thanks
Paolo