tatatat0
Smash Journeyman
- Joined
- Jan 28, 2015
- Messages
- 412
I was wondering, since each projectile(spawned ingame) is likely its own object, could you say, edit a certain type of projectiles attributes on a systematic basis. Like for example, making all currently spawned mario's fireballs horizontal velocity reverse on a trigger like falcon taunting (or really anything). Pretty much what would happen
for each projectile in projectiles
if projectile.id == fireball_id
projectile.reverse()
Iterating through each projectile, checking if it is mario's fireball, and changing its attribute if it is.
for each projectile in projectiles
if projectile.id == fireball_id
projectile.reverse()
Iterating through each projectile, checking if it is mario's fireball, and changing its attribute if it is.