Thread revival!
I'm trying to make an enemy that periodically surrounds itself with a ring of hourglasses. The solution I came up with was to edit the Pizza event so that it's a gem ring with the event ID set to 90. The enemy would then spawn a pizza and constantly set its xPos and yPos to its own. However, I'm having trouble figuring out how to access the Gem Ring event value in the script. Here's what I have so far:
Code:
void onLevelLoad() {
jjObjectPresets[OBJECT::PIZZA].behavior = freezeRing;
}
void freezeRing(jjOBJ@ obj) {
obj.behavior = BEHAVIOR::GEMRING;
obj.eventID = 90;
obj.var[2] = 90;
obj.var[0] = 4;
obj.var[1] = 4;
}
|