Solution: You use functions ...pass along the variables you want via paramaters to a function that generates the enemy and use the paramaters to set it's instant variables
G'day again guys.
Unsure if this is a "How do i" or a 'beginners question' so i chose the later because I believe if I had more experience I'd already know the answer:
I've tried a few things but it's not working right I believe it has to do with identifying the instances.
Essentially I need to completely clone the Enemy as another instance and then change at least one instance variable of the new clone. (instance variable isn't shown in the below list as I don't see it being an issue.)
Information:
Enemies are basically bouncing balls.
If they hit the ground
Triger Simulate Jump
Triger Gravity +10
Triger JumpStrength -10
I am attempting to:
When the bullet hits the (original)Enemy:
Create Explosion (no problems here)
Create Enemy(instance#2)
Set Enemy(instance#2) gravity and jumpstrength to that of (original)Enemy
Set Enemy(instance#2)scale 0.75 (no problems here)
Create Enemy(instance#3)
Set Enemy(instance#3) gravity and jumpstrength to that of (original)Enemy
Set Enemy(instance#2)scale 0.75 (no problems here)
Destroy (original)Enemy ..... (I have to do it here because I need to refernece it for the properties
Destroy Bullet
I'm ok with not destroying the original Enemy (but changing it's scale) but still having issues with the assigning of the properties.
Any ideas / tips / direction?
Thanks in advance :*