YEP.88 – Picture Common Events
introduction
Pictures can function as something other than just a visual for your game. They can sometimes serve as UI elements or more! However, what they don’t have the ability to inherently do is to call upon common events when clicked on by the mouse. With this plugin, the pictures bound to a common event will become usable when clicked or touched!
圖片不僅僅可以作為圖像存在你的游戲掌呜,還可以實現(xiàn)很多功能。他們可以用來做界面元素。可可目前他們還不能在鼠標(biāo)點擊時作為公共事件執(zhí)行父虑。使用這個插件,圖片可以綁定公共事件微谓,當(dāng)鼠標(biāo)點擊或者觸摸時執(zhí)行
Instructions
In the plugin’s parameters, you can set common event ID’s to each picture ID listed from 1 to 100 (max number of pictures used in RPG Maker MV is 100). If the picture is has even a value of 1 opacity, that picture can be used for a common event. There are four condition types that can be bound with the common events:
在插件參數(shù)里憨栽,你可以綁定圖片的事件ID,總共圖片上限100張床玻。只要圖片有值毁涉,他就會用于事件。這里有4種觸發(fā)情況
—
– CLICK –
If the picture is clicked upon, this will prompt the common event to trigger if the common event value listed is above 0. This will trigger only once until the player releases the mouse (or stops touching the screen).
點擊:當(dāng)圖片被單擊時觸發(fā)笨枯。事件需要玩家點擊鼠標(biāo)并釋放后才觸發(fā)
– REPEAT –
If the mouse is clicked and then held (or if the touch screen is pushed and held), as long as the mouse is above the picture area and the common event value listed is above 0, then this will trigger once every 6 frames until the player releases the mouse (or stops touching the screen) or moves the mouse outside of the picture boundaries.
重復(fù):如果鼠標(biāo)按下并不放松薪丁,在釋放之前遇西,每6幀就會執(zhí)行一次
– HOLD –
If the mouse is clicked and then held (or if the touch screen is pushed and held), as long as the mouse is above the picture area and the common event value listed is above 0, then this will trigger every frame until the player releases the mouse (or stops touching the screen) or moves the mouse outside of the picture boundaries.
按紫诰:如果鼠標(biāo)按下并且不放松。在釋放之前粱檀,每幀都會執(zhí)行一次
– RELEASE –
Upon releasing the clicked mouse (or the moment the player stops touching the screen) and releases the mouse above this picture and if the picture’s common event value listed is above 0, then this will trigger upon release.
釋放:鼠標(biāo)放松時觸發(fā)
—
Note that there are some behavioral changes in regards to pictures bound to that of common events. Any picture that’s bound to a common event will be separate from the map’s spriteset, and instead, bound to the scene. This is so that in the event the screen is scrolled, zoomed in, shakes, etc., it will NOT affect the bound pictures.
注意地圖的放大洲敢,移動,震動等不會影響綁定圖片
This is because the pictures are generally to be used as UI elements and UI elements best work under the practice that they do not change position.
因為圖片已經(jīng)作為界面元素產(chǎn)生茄蚯,不會改變位置
Plugin Commands
The following are some plugin commands you can use should you want to add a bit of control with the Picture Common Events.
下面插件命令可以用來控制圖片事件
Plugin Command
EnableTouchMove
DisableTouchMove
– Allows the player to press a destination on the screen and move there or disables the player from using touch movement.
允許玩家觸碰來移動
HidePictureCommonEvents
ShowPictureCommonEvents
– Manually hide all pictures bound to common events or show them. If shown then pictures will return to their previous opacity value. Hidden pictures cannot be triggered to activate common events.
顯示和隱藏圖片事件
MovePlayer Down
MovePlayer Left
MovePlayer Right
MovePlayer Up
– Will cause the player character to move as if moving by using a 4-dir input (either via keyboard or controller). This is best used with ‘Press’.
使玩家移動
TriggerButton Ok
TriggerButton Cancel
TriggerButton Dash
TriggerButton PageUp
TriggerButton PageDown
TriggerButton Left
TriggerButton Up
TriggerButton Right
TriggerButton Down
– This will cause the game to simulate triggering the button command of one of those original functions even if there is a common event bound to all of the keys of that original function.
綁定按鈕按鍵