mulier

Warper
Member
Joined
Oct 4, 2018
Messages
4
Reaction score
0
First Language
china
Primarily Uses
RMMV
@Ossra
@Skurge You can use the plugin for essentially everything ... pictures, events, and so on. Like so :


unknown-map-birbs.gif





Hello, the picture is invalid, may I ask what are the properties for the event .
My English is poor, thanks.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
882
First Language
English
Primarily Uses
RMMV
@mulier

7rxx2Zg.gif

  • Bird 1 Event
    • Page 1
      • Move Route (Custom)
Code:
◆ 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)

  • Bird 1 Event
    • Page 2
      • Parallel Event
      • When Self-Switch A is On)
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
 
Last edited:

mulier

Warper
Member
Joined
Oct 4, 2018
Messages
4
Reaction score
0
First Language
china
Primarily Uses
RMMV
@Ossra Thank you very much! It was very useful to me!
 

Roezaka

Villager
Member
Joined
Jan 4, 2020
Messages
5
Reaction score
0
First Language
Rus
Primarily Uses
Other
What am I doing wrong? :(
 

Attachments

  • fdffd.png
    fdffd.png
    147.1 KB · Views: 17
  • 22323.png
    22323.png
    87.6 KB · Views: 16

PresaDePrata

Veteran
Veteran
Joined
Dec 4, 2014
Messages
90
Reaction score
18
First Language
Portuguese
Primarily Uses
RMMV
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

@Ossra

Can't find the function between. Did you create it? I'm trying using chrome's console via F8. When i search $gameMap.event(1)._x.between(...) it shows 'undefined'

EDIT: Also, do you know if it's possible to trigger an event by touch while it's performing the route animation? I tried here, but it seems the event must complete its animation before it can be triggered again.

@Roezaka

You don't need to put $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()
 
Last edited:

DadGuyDrawing

Veteran
Veteran
Joined
Apr 15, 2020
Messages
91
Reaction score
36
First Language
English
Primarily Uses
RMMV
Not sure if I'm still allowed to post on this thread, but I have a question: how do I delay the start of a tween? I have 3 pics that I want to tween at different intervals, so would be helpful if I could use the delay method, but I don't really understand how. Here is my existing code:


Code:
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();

So how would i add a delayed start of say 5 frames to it?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,841
Reaction score
12,372
First Language
English
Primarily Uses
RMMZ
I am trying to see if this plugin works in MZ by using FOSSIL. However, my knowledge of JavaScript is still so minimal that I am unsure if my difficulty is because of poor syntax/some missing instruction or whether it is because it won't work properly in MZ.

I am trying to get the opacity of a picture (picture 1) to change from 0 to 155 over 80 frames. However, it seems to be instantaneous. I have tried increasing the duration to 300 frames, but it still does it. My script call is:

Code:
new IAVRA.ANIMATE.Tween($gameScreen.picture(1), {_x : 155}).duration(80).start()

Could someone advise me what I should be doing?

Thanks.


Thank you.
 
Last edited:

Latest Threads

Latest Posts

Forum statistics

Threads
124,349
Messages
1,162,948
Members
163,147
Latest member
onbetme
Top