[Solved]
Right now, I'm using:
"$gameScreen.showPicture(2, 'Laser', 'Center', $gameMap.event(this._eventId).screenX(), $gameMap.event(this._eventId).screenY(), 50, 10, 255, 'Normal')"
and it gives me a TypeError "Cannot read property '0' of undefined". I'm not sure if my syntax is wrong, or what... I've tried many different variations on capitalizing 'laser' 'center' and 'normal', or using " instead of '. If I use neither " or ', I get an error that says "laser is undefined". Nothing changes when I change the capitalization.
The debug menu always mentions a ".setBlendMode" error along with a bunch of stuff mentioning "render" and "WebGL" and a "SceneManager.catchException" error. I've also read that you get catchException errors when using "this." commands improperly. I feel like I need to use the "this._eventId" in order to avoid making millions of variables, but I really don't know. Anyone got any cool solutions?
Edit: nvm, I figured it out. Instead of typing out the word "Center" I figured I'd try using the number of the option it is in the event maker, i.e., "Center" is the second option in the "Origin" dropdown box in the show picture window. Same idea for the "Blend Mode" value. The name works with ' and '.
Right now, I'm using:
"$gameScreen.showPicture(2, 'Laser', 'Center', $gameMap.event(this._eventId).screenX(), $gameMap.event(this._eventId).screenY(), 50, 10, 255, 'Normal')"
and it gives me a TypeError "Cannot read property '0' of undefined". I'm not sure if my syntax is wrong, or what... I've tried many different variations on capitalizing 'laser' 'center' and 'normal', or using " instead of '. If I use neither " or ', I get an error that says "laser is undefined". Nothing changes when I change the capitalization.
The debug menu always mentions a ".setBlendMode" error along with a bunch of stuff mentioning "render" and "WebGL" and a "SceneManager.catchException" error. I've also read that you get catchException errors when using "this." commands improperly. I feel like I need to use the "this._eventId" in order to avoid making millions of variables, but I really don't know. Anyone got any cool solutions?
Edit: nvm, I figured it out. Instead of typing out the word "Center" I figured I'd try using the number of the option it is in the event maker, i.e., "Center" is the second option in the "Origin" dropdown box in the show picture window. Same idea for the "Blend Mode" value. The name works with ' and '.