Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi! I'm thinking about putting a fishing minigame in my game but I'm still figuring out gb studio. Can you make it so there a % of chance to get, let's say a boot, another % of chance to get an  actual fish, etc.?

(1 edit)

to elaborate: if its 100% sure there's a catch, can you make it so you won't neccesasarily get the same thing every time ?

Hi there! I get what you mean! That is very possible. But the system I created is only a template for 1 item. You will need to add another "Math Function" that makes a variable value random for said item. And then another. Then you will just correspond it with the actor sprite that will pop up above player once received. It's quite a tedious process to include other items. But I will see if I can make a different fishing system version.

Here's a guide for you maybe you can do it:

If $CatchFish Value 3,10 (this is what I did, the catch function ranges from 3-10 which is connected to a 3-10 second timer)

therefore you will catch a fish within those seconds.

What you can do is

Retain the random formula but change what comes out if the value becomes ___

So that being said, you can make it if value is 1 = it will change the actor to a boot. 
If value is 2 it will change actor to bread. If value is 3 = a fish. So on and so forth. 

But be reminded that there are limits to the actors okay? You may opt to do the animation frames though if actor limits are an issue.

that is such a well develloped answer thank you so much! I will brainstorm on this and get that template of yours at some point to work on it :P

Sure thing! Will probably make an updated version in the future if I find time :) Thanks for the support!