View Single Post
DoubleGJ DoubleGJ's Avatar

JCF Member

Joined: Sep 2002

Posts: 3,049

DoubleGJ has disabled reputation

Aug 15, 2017, 01:16 PM
DoubleGJ is offline
Reply With Quote
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;
}
__________________
"So unless I overwrote my heart with yours, I think not. But I might have." - Violet CLM

Two Games Joined releases:
Control / Splinter (twin singles)
|| Ballistic Bunny (EP)
||
Beyond (maxi-single)
|| Beyond: Remixed (remix EP)
|| Inner Monsters OST (mini-album)
||
Shadows (album)