- Joined
- Oct 4, 2018
- Messages
- 4
- Reaction score
- 0
- First Language
- china
- Primarily Uses
- RMMV
◆ Turn at Random
◆ Script : var px = $gamePlayer._x; var py = $gamePlayer._y; ($gameMap.event(1)._x.between(px - 8, px + 8) && $gameMap.event(1)._y.between(py - 5, py + 5)) ? $gameSelfSwitches.setValue([2,16,'A'], true) : (rndTime = Math.floor(Math.random() * (45 - 25 + 1)) + 25, this._waitCount = rndTime)
◆Set Movement Route:This Event (Wait)
: :◇Turn Right
◆Script:object = $gameMap.event(1);
: :mapX = $dataMap.width + 10;
: :mapY = -5;
: :var avianTween = new IAVRA.ANIMATE.Tween(object, {_realX : mapX, _realY : mapY}).duration(85);
: :avianTween.easing(IAVRA.EASING.circ.in);
: :avianTween.start();
: :this.wait(95);
◆Control Self Switch:A = OFF
◆Erase Event
Code:◆Set Movement Route:This Event (Wait) : :◇Turn Right ◆Script:object = $gameMap.event(1); : :mapX = $dataMap.width + 10; : :mapY = -5; : :var avianTween = new IAVRA.ANIMATE.Tween(object, {_realX : mapX, _realY : mapY}).duration(85); : :avianTween.easing(IAVRA.EASING.circ.in); : :avianTween.start(); : :this.wait(95); ◆Control Self Switch:A = OFF ◆Erase Event
$gameMap.event(1)._x.between(...)
it shows 'undefined'$gameScreen.picture(1)
after calling your picture. Use the following inside a script call and see if you still get an error:new IAVRA.ANIMATE.Tween($gameScreen.picture(1), {_x: 50, _y: 100}).duration(200).start()
var intPicId = 200; var strPicName = $gameVariables.value(717); var intPicX1 = $gameVariables.value(741); var intPicY1 = $gameVariables.value(742); var intPicSizePct1 = $gameVariables.value(743); var intOpacity = 255;
new IAVRA.ANIMATE.Tween($gameScreen.picture(intPicId), {_scaleX: intPicSizePct1, _scaleY: intPicSizePct1, _x: intPicX1, _y: intPicY1, _opacity: intOpacity}).easing(IAVRA.EASING.quad.in).duration(30).start();
new IAVRA.ANIMATE.Tween($gameScreen.picture(1), {_x : 155}).duration(80).start()