【漢化】YEP.88 – Picture Common Events

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.

綁定按鈕按鍵


Happy RPG Making!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末压彭,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子渗常,更是在濱河造成了極大的恐慌壮不,老刑警劉巖,帶你破解...
    沈念sama閱讀 222,627評論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件皱碘,死亡現(xiàn)場離奇詭異询一,居然都是意外死亡,警方通過查閱死者的電腦和手機癌椿,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,180評論 3 399
  • 文/潘曉璐 我一進店門健蕊,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人踢俄,你說我怎么就攤上這事缩功。” “怎么了都办?”我有些...
    開封第一講書人閱讀 169,346評論 0 362
  • 文/不壞的土叔 我叫張陵嫡锌,是天一觀的道長。 經(jīng)常有香客問我琳钉,道長世舰,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 60,097評論 1 300
  • 正文 為了忘掉前任槽卫,我火速辦了婚禮跟压,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘歼培。我一直安慰自己震蒋,他們只是感情好茸塞,可當(dāng)我...
    茶點故事閱讀 69,100評論 6 398
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著查剖,像睡著了一般钾虐。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上笋庄,一...
    開封第一講書人閱讀 52,696評論 1 312
  • 那天效扫,我揣著相機與錄音,去河邊找鬼直砂。 笑死菌仁,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的静暂。 我是一名探鬼主播济丘,決...
    沈念sama閱讀 41,165評論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼洽蛀!你這毒婦竟也來了摹迷?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 40,108評論 0 277
  • 序言:老撾萬榮一對情侶失蹤郊供,失蹤者是張志新(化名)和其女友劉穎峡碉,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體驮审,經(jīng)...
    沈念sama閱讀 46,646評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡鲫寄,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,709評論 3 342
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了头岔。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片塔拳。...
    茶點故事閱讀 40,861評論 1 353
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖峡竣,靈堂內(nèi)的尸體忽然破棺而出靠抑,到底是詐尸還是另有隱情,我是刑警寧澤适掰,帶...
    沈念sama閱讀 36,527評論 5 351
  • 正文 年R本政府宣布颂碧,位于F島的核電站,受9級特大地震影響类浪,放射性物質(zhì)發(fā)生泄漏载城。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 42,196評論 3 336
  • 文/蒙蒙 一费就、第九天 我趴在偏房一處隱蔽的房頂上張望诉瓦。 院中可真熱鬧,春花似錦、人聲如沸睬澡。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,698評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽煞聪。三九已至斗躏,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間昔脯,已是汗流浹背啄糙。 一陣腳步聲響...
    開封第一講書人閱讀 33,804評論 1 274
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留云稚,地道東北人隧饼。 一個月前我還...
    沈念sama閱讀 49,287評論 3 379
  • 正文 我出身青樓,卻偏偏與公主長得像碱鳞,于是被迫代替她去往敵國和親桑李。 傳聞我的和親對象是個殘疾皇子踱蛀,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,860評論 2 361

推薦閱讀更多精彩內(nèi)容