Energy Engine
Member
Heya,
A simple issue. I have a player object, "oplayer "and an object "omini" that "clings" to oplayer. I'm trying to have it so that multiple instances of omini are able to cling to oplayer via a collision event, and oplayer is able to throw off those instances by pressing a key.
Normally, this would be straight-forward if I wanted to throw off the omini instances all at once by simply using with(other) {//throw code} inside a collision event with object omini (or a parent maybe). But what if I wanted oplayer to throw off any of the omini instances one at a time instead of all at once? The order in which they get thrown off doesn't matter.
I've tried looking around a way to address this, but didn't find anything. What would be a good way to achieve this?
Thanks!
A simple issue. I have a player object, "oplayer "and an object "omini" that "clings" to oplayer. I'm trying to have it so that multiple instances of omini are able to cling to oplayer via a collision event, and oplayer is able to throw off those instances by pressing a key.
Normally, this would be straight-forward if I wanted to throw off the omini instances all at once by simply using with(other) {//throw code} inside a collision event with object omini (or a parent maybe). But what if I wanted oplayer to throw off any of the omini instances one at a time instead of all at once? The order in which they get thrown off doesn't matter.
I've tried looking around a way to address this, but didn't find anything. What would be a good way to achieve this?
Thanks!