using UnityEngine;
using AC;
public class VerbCoin : MonoBehaviour
{
public float maxHoldTime = 0.5f;private float heldTime;private void Update (){ if (Input.GetMouseButton (0) && (KickStarter.playerInteraction.GetActiveHotspot (…
Made a FREAKING oopsie, I happened to update to 1.8 today to see if I could expand my options for fixing the bugs that still occur nowadays, and I found myself getting the following message:
Assets\VerbCoin.cs(44,54): error CS1503: Argument 1: cann…
That didn't work but I had a better idea, too bad I couldn't execute it correctly
If the game detects that the mouse button was lifted before maxHoldTime was elapsed then the element will be selected, otherwise the interactions menu will be display…
Oh and two more requests before I stop bothering you lol
Double clicking to teleport (and disable this option when a boolean variable is false)
Use "." to skip dialogues
Sorry I misunderstood, this is the full log:
Selected item Paper code
0x00007ff638e6c36c (Unity) StackWalker::GetCurrentCallstack
0x00007ff638e74749 (Unity) StackWalker::ShowCallstack
0x00007ff63a35d27c (Unity) GetStacktrace
0x00007ff63b45f9b3 (Uni…
Yes, it shows. I got an idea, by using the "Prevent Interactions?" method or something related, make something like this
If heldTime equals or is greater than, let's say, 0.15, the item cannot be selected, otherwise if heldTime is less th…
https://imgur.com/a/IhlSmK0
Any chance to edit this code so the menu would trigger only if you're not holding an inventory item?
using UnityEngine;
using System.Collections;
using AC;
public class VerbCoin : MonoBehaviour
{
public float maxHoldT…
Thanks, and I got another small issue. I used your script (As seen here: https://adventurecreator.org/forum/discussion/7891/click-and-hold-on-hotspot-to-make-a-verb-coin-appear) and when I hold the mouse button inside my inventory menu, the interact…
error CS0103: The name 'InvInstance' does not exist in the current context
error CS1061: 'RuntimeInventory' does not contain a definition for 'HoverInstance' and no accessible extension method 'HoverInstance' accepting a first argument of type 'Run…
It's as simple as doing this, in your project folder, find the framework Javascript file, search the word "cursor", search until you reach this line: {Module.canvas.style.cursor=show?"default:"none"}
Just change "defau…