TSR_MoveEvent

View attachment 182356
Autore:
TSR, La rana del Nord
Scaricamento:
TSR_MoveEvent
​
Questo plugin consente di spingere, tirare, raccogliere e lanciare eventi.



Spoiler: Istruzioni
[CODICE] *
* =========================================================================================
* == Informazioni su questo plugin =========================================================================
* =========================================================================================
* Utilizza i seguenti tag di commento per trasformare la pagina dell'evento in un evento mobile.
*
* Tag commento evento:
* ===================
*
* <EVENTO MOBILE>
* La pagina dell'evento con questo tag di commento può essere spinta e
* tirato dal giocatore.
*
*
* <MISTERO MOBILE: X>
* La pagina dell'evento con questo tag di commento può essere spinta e
* tirato dal giocatore. Inoltre, questi eventi saranno
* riproduci il 'Mystery Sound' (impostato nei parametri) e gira
* Accendere l'interruttore specificato da X.
*
* Questo accadrà solo la prima volta che l'evento verrà spostato.
* Tali eventi saranno considerati eventi mobili regolari
* dopo.
*
*
* <EVENTO DI RITIRO>
* La pagina dell'evento con questi tag di commento può essere selezionata e
* lanciato dal giocatore.
*
*
* <OFFSET EVENTO SPOSTAMENTO: X>
* Usa questo tag se devi regolare la distanza
* il giocatore deve camminare per avvicinarsi all'evento mobile.
* Senza il tag, la distanza sarà definita dal
* parametro 'sposta offset evento'.
*
* Questo tag di commento può essere utilizzato anche negli eventi di ritiro per
* imposta la distanza tra il giocatore e l'evento a cui si riferisce
* presa.
*
*
* Tag nota mappa:
* =============
*
* Per impostazione predefinita, gli eventi lanciati rispettano la stessa passabilità del giocatore.
* Puoi lanciare eventi su alcune tessere invalicabili usando quanto segue
* tag in una casella di note della mappa.
*
* <REGIONE DI LANCIO: x, x, x>
* Usa questo tag di mappa per contrassegnare un ID di regione come percorribile
* per lanciare l'evento attraverso quelle regioni.
*
*
*
* MODO D'USO:
* ===========
*
* PER SPINGERE: Tenere premuto il tasto FRECCIA nella direzione verso il mobile
* evento finché non si allontana di una tessera.
*
* PER TIRARE: tenere premuto il PULSANTE OK quando ci si trova accanto a un evento mobile
* e di fronte ad esso, e aspetta che si muova di una tessera.
*
* *C'è un piccolo ritardo quando si spinge o si tira. Continua a tenere premuto
* la chiave e vedrai il giocatore iniziare a 'correre' contro
* l'evento mobile. Quindi sentirai il 'Suono di sforzo' (impostato
* nei parametri) e vedere il 'Palloncino di sforzo' (impostato anche in
* parametri). Dopo qualche altro fotogramma, l'evento si sposterà
* e il giocatore si muoverà insieme ad esso.
*
* **Quando si spinge e si tira, il giocatore camminerà brevemente verso
* avvicinarsi all'evento mobile. La distanza predefinita è
* impostato nei parametri. C'è anche un tag di commento dell'evento per
* assegnare una distanza specifica ad alcuni eventi.
*
* ***L'evento di spinta e trazione si muoverà alla velocità impostata in
* la scheda evento. Il giocatore si muoverà alla stessa velocità quando spinge
* o tirando l'evento.
*
*
* PER IL RITIRO: Posizionarsi di fronte a un evento selezionabile e tenere premuto OK
* PULSANTE per raccoglierlo. Continua a tenere premuto il tasto perché
* rilasciandolo l'evento verrà eliminato. Puoi muoverti e
* trattino mentre si tiene un evento.
*
* PER LANCIARE: Rilascia il PULSANTE OK per far cadere l'evento che il giocatore sta lanciando
* in attesa. L'evento verrà rilasciato sulla tessera di fronte
* del giocatore. Se lo lasci cadere mentre tieni una FRECCIA
* CHIAVE, l'evento verrà lanciato una tessera più avanti
* del giocatore. E se cadi mentre tieni entrambi i
* PULSANTE DASH e un TASTO FRECCIA, l'evento verrà lanciato
* 2 tessere di distanza davanti al giocatore.
*
*
* CHIAMATE PER LA SCENEGGIATURA:
* =============
*
* Per gestire l'interazione degli eventi mobili sulla mappa, puoi
* utilizzare alcune chiamate di script per controllare la posizione degli eventi sulla mappa.
*
*
* Eventi PUSH / PULL
* ==================
*
* Utilizzare la seguente chiamata predefinita per controllare la posizione di un evento in qualsiasi momento:
*
* $gameMap.event(idevento).pos(x, y)
*
* Restituirà true o false indipendentemente dal fatto che l'evento si trovi nella posizione x, y su
* la mappa. Questo può essere verificato in un evento di processo parallelo o in un
* comando script di movimento autonomo.
*
*
*
* Eventi PICK & THROW
* ===================
*
* Questi eventi possono essere un po' più complicati da gestire per le meccaniche di gioco
* scopi. Il plugin fornisce chiamate di script aggiuntive per controllare
* queste posizioni degli eventi.
*
* $gamePlayer.isHolding(eventId);
*
* Questa chiamata restituirà true se l'evento mappa specificato da eventId è
* tenuto (portato) dal giocatore.
*
*
* $gamePlayer.hasBroughtEvent(idevento, x, y, d)
*
* Questa chiamata restituirà true se l'evento mappa specificato da eventId è
* tenuto dal giocatore sulla tessera x, y e girato nella direzione d.
*
*
* $gamePlayer.hasGaveEvent(idevento, IDeventodestinazione)
*
* Questa chiamata restituirà true se l'evento mappa specificato da eventId è
* tenuto dal giocatore sulla tessera di fronte all'evento mappa specificato
* di targetEventId Il giocatore deve essere rivolto verso l'evento target.
*
*
* $gamePlayer.hasThrownEvent(idevento, x, y)
*
* Questo restituirà vero se il giocatore ha effettivamente lanciato o
* rilascia l'evento mappa specificato da evenId su quella tessera esatta in
* posizione x, y.
*
*
*
* [/CODICE]
​
[CODICE]============================================================

Termini d'uso:

Utilizzabile in qualsiasi progetto RPG Maker MZ o MV indipendente, compresi gli spot pubblicitari.

Per utilizzare questo plugin è necessario citare i crediti. Per citare i crediti, utilizzare "TSR" insieme a uno dei seguenti termini: "The Northern Frog" o "A frog from the north"

Non modificare l'intestazione o i Termini di utilizzo.

NON RIDISTRIBUIRE! Se vuoi condividerlo, condividi il link al mio account itch.io: https://the-northern-frog.itch.io/

Apprezzerei molto se mi inviassi una copia del tuo gioco completato utilizzando il mio plugin, ma non sono obbligato.

=============================================================[/CODE]

Saluti!
TS

Hi! This plugin is truly phenomenal! I noticed that when the player approaches the event/object, it takes at least 2 seconds before it starts pushing. Is there any way to reduce this delay? Thank you so much! Kisses from Italy!
Hi! This plugin is truly phenomenal! I noticed that when the player approaches the event/object, it takes at least 2 seconds before it starts pushing. Is there any way to reduce this delay? Thank you so much! Kisses from Italy!
there is only a work around, as it show some animation before it push or pull.
if you want to speed it up.

you need to make a condition branch, check if OK is pressed down.
increase character speed to 6, (maybe higher) than push/pull.

else (when it released)
revert character speed as normal as it was.

if you use update speed, you need to cache the currect speed, before changing,
so when false, the speed = cached speed.

but this is a work around, I think this was requested before, can't remember.
Hello!
Hi! This plugin is truly phenomenal! I noticed that when the player approaches the event/object, it takes at least 2 seconds before it starts pushing. Is there any way to reduce this delay? Thank you so much! Kisses from Italy!
Thank you for your comments. I can add a parameter for the push/pull delay, but reducing it too much could desynchronize the effort sound and balloon. Still you could disable those by setting their params to 0.
Give me some time, and I'll post a new version with a push/pull delay parameter.
​
there is only a work around, as it show some animation before it push or pull.
if you want to speed it up.

you need to make a condition branch, check if OK is pressed down.
increase character speed to 6, (maybe higher) than push/pull.

else (when it released)
revert character speed as normal as it was.

if you use update speed, you need to cache the currect speed, before changing,
so when false, the speed = cached speed.

but this is a work around, I think this was requested before, can't remember.
This won't change the hardcoded delay before pushing and pulling, it would only accelerate the push/pull move itself. Beside, if you want to change the moving speed while pushing and pulling, you just set the moving speed of the movable event to the value you want. The player will adjust his speed to the moving event and go back to his normal speed afterward. There's no need for conditionnals, or cache up the speed. 😉​

Regards!
TSR
T
Hello!

Thank you for your comments. I can add a parameter for the push/pull delay, but reducing it too much could desynchronize the effort sound and balloon. Still you could disable those by setting their params to 0.
Give me some time, and I'll post a new version with a push/pull delay parameter.


This won't change the hardcoded delay before pushing and pulling, it would only accelerate the push/pull move itself. Beside, if you want to change the moving speed while pushing and pulling, you just set the moving speed of the movable event to the value you want. The player will adjust his speed to the moving event and go back to his normal speed afterward. There's no need for conditionnals, or cache up the speed. 😉​

Regards!
TSR
Thank you for the replay and for the hard work! Looking forward to the next updates! 😉
Hello!
Here's the updated version with parameters for changing the delay before pushing and pulling.

@Sally_95

Regards,
TSR 🤘
Hello!
Here's the updated version with parameters for changing the delay before pushing and pulling.

@Sally_95

Regards,
TSR 🤘
I'm speechless! You literally fixed it right away! Thank you so much. <3
When I approach the event, it doesn't actually moe the event.

The player attempts to push it but it doesn't budge?

Do I have something set wrong or is it simply just plugin placement? I'm on MV using a lot of the YEP series of plugins, if that helps?
1772976118990.png
Do I have something set wrong or is it simply just plugin placement? I'm on MV using a lot of the YEP series of plugins, if that helps?
Hello! I cannot tell if there is some interference by other plugins.
But your setup seems alright. Beside, you said the player attempt to push so it does seems to work. There might be something preventing the event to move. Movable events follows all passability rules of the map and other events. You may want to check that first.

Regards!

Original thread: https://forums.rpgmakerweb.com/threads/tsr_moveevent.134254/