Fish 'em up


image

A new package/blueprint by Syl Games for the Treasure Hunt Build Jam (2022).

Do you want to add a fishing system to your videogame? With this package or blueprint you can do it very easily. We will explain how it works below:

image

  • You can fish any type of items (fish, treasures…)
  • Fully customizable: object image, difficulty, speed, etc.
  • Customizable fishing spots wherever you want

Install
NOTE 1: This package requires the following packages to work: Inventory and Prompts by Unit 2 Games.
NOTE 2: This step is only necessary for people who want to install the package. If you are creating your game directly from the blueprint you can skip this section.

  1. Go to the community section within your game and enter in the search engine: Fish 'em up
  2. Install it
  3. Go to packages, go to the last installed package and open it
  4. Drag the User Fishing folder to the User template
  5. Drag the User Camera Raycast folder to the User template

image You should have something similar to this

  1. Drag the Player Instructions folder to the player template

image You should have something similar to this

  1. Drag the Fishing Area template to the World
  2. That should be all, if you have any problems remember to make sure all properties are assigned

image

1- ITEMS

NOTE 3: Remember to disable the collision of the objets

To create your own fishable items you have to create a template and add these scripts to the root object: fishableItemScript and inventoryItemSpecScript

1.1- ITEMS: FISHABLEITEMSCRIPT

This script has the item settings for the fishing mini-game

  • name: name of the object
  • minigameSpeed: speed of the object in the fishing mini-game
  • minigameDuration: duration of the object in the fishing mini-game
  • hookDecreaseRate: speed at which the hook descends while you do not press it
  • hookIncreaseRate: speed at which the hook increase when you press it
  • hookThreshold: hook size, the larger the hook the more it will occupy in the tension line (1% - 100%)
  • image: link to the UI image for the item

1.2- ITEMS: INVENTORYITEMSCRIPT

These are the settings for the item in inventory

  • friendlyName: name of the item
  • isCurrency: it is a currency or an object
  • canStack: if it can be stacked within the inventory
  • grip: the way in which the player is going to carry the object on the hands
  • iconAsset: the asset icon

2- FISHING AREA

You can only fish in certain zones, for this you have to select the zone where the players have to be on top (standing point) and the zone where you have to look at (fishing spot).

2.1- FISHING AREA: STANDING POINT

This is the place where players must be to activate it.

It is simply a trigger with the active and player only properties along with the script: shoreTiggerScript.

2.2- FISHING AREA: FISHING SPOT

This is the zone that players have to look at while on a standing point.

It is simply a trigger with the active and interactable properties along with the script: lookAtScript

  • interactable: it is active or not
  • message: it is the message that will appear on the screen to enter and exit the fishing mode
  • action: there is only the fishing action, but creators can implement their own actions
  • items: the lists of items that players can fish in that spot
  • timeToAction: here you enter the minimum and maximum seconds that have to pass for something to take the bait

You can identify the fishing spot with this animation in the water:

958ed25429f7f4d945f51d1d065deacc (1) (1) (online-video-cutter.com)

3 - FISHING MINI GAME

It is a mini-game that players have to overcome to get the fishing. It is divided into 2 parts: cast the rod and pulling the rod.
Desktop 2022.06.12 - 19.04.45.03 (online-video-cutter.com) Cast the rod

ezgif-4-5da413a8f9 Pulling the rod

3.1 - FISHING MINI GAME: CAST THE ROD

Once you enter fishing mode you can cast the rod by holding down the spacebar, the more you press it the farther you can cast it.

  • Buttons: from here you can select with which button of the controls the players will perform the fishing actions

  • Cast Rood Button: this will be the button to start fishing, by default it will be the jump button (spacebar)

  • Exit Fishing Mode Button: this will be the button to exit the fishing mode, by default it will be the interact button (“E”)

  • Default Fish Image: here you can enter the link to the UI image to use as default when fishing

  • Cooldown: the seconds that have to pass before you can fish again. From the end of the mini-game to the beginning of the next game

  • Sounds: sounds list that are reproduced according to fishing actions (one is chosen randomly)

  • Cast Rod Sound: the sound that is reproduced when you cast the rod and when something baits
  • Success Sounds: the sounds that are reproduced when a fish is caught successfully
  • Failure Sounds: the sounds that are played when a fish is not caught

  • Tick Rate: the widget refresh rate in miliseconds
  • Force Bar Speed: the speed percentage of the bar when raising and lowering the bar per second

96193e5348a39eb0c21654b227e4b6f2 This is the bar representing the throwing force in-game.

3.2 - FISHING MINI GAME: PULLING THE ROD

As soon as a fish catches the hook, the mini-game of keeping the hook inside the fish starts.

  • Tick Rate: the widget refresh rate in miliseconds
  • Hook Image: here you enter the link of the UI image for the hook
  • Runtime Values: the settings that can be overwritten with each item to be fished
  • Passive Hook Decrease: speed at which the hook descends while you do not press it
  • Click Hook Increase: speed at which the hook increase when you press it
  • Hook Threshold: hook size, the larger the hook the more it will occupy in the tension line (1% - 100%)
  • Item Image: link to UI image for the item
  • Duration: duration of the minigame
  • Force Bar Speed: the speed at which the fish moves on the bar

356b1c7c619e2368a540c02d7e56948d This is the bar representing the pulling force in-game.

image

- Can I choose what to fish?
Yes, in each fishing spot you can change the items that can be fished.

- Can I change the movement of the tension zone and the movement of the fish?
Yes, from the script fishableItemScript of each object.

- How do I add more fish/objects?
You can duplicate the objects that come with the package and change them or create a new template and add fishableItemScript and inventoryItemSpecScript scripts.

- How do I change the controls?
You can change the controls in User-> User Fishing and User Raycast Camera folders.

- I can’t see any of the UI images shown here, where are they?
It is a known problem in Crayta that sometimes the UI images disappear from the player even if others see them, we can’t do anything to fix it but restarting might work.

- Have you found a bug that is not listed here or have a suggestion?
Reply in this thread or contact us in Crayta discord: discord.gg/crayta

image

  • Denior - Environment Artist
  • JusGoat - Level Designer
  • Rainarten - UI Designer
  • Unairf - Lua Master

Packages/Scripts used:

  1. Inventory by Unit 2 Games
  2. Prompts by Unit 2 Games
  3. Notifications by Unit 2 Games
  4. DarXyde - Menu Panel Widget and Script by DarXyde

SHOWCASE : FISH 'EM UP: SHOWCASE
BLUEPRINT: FISH 'EM UP: BLUEPRINT
PACKAGE: FISH EM UP

4 Likes