Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> [Eventing]Fishing - Twitch Style, Fishing with skill!
Logan110
post Feb 22 2010, 08:21 AM
Post #1


Level 15
Group Icon

Group: Revolutionary
Posts: 271
Type: Event Designer
RM Skill: Advanced




This is my first tutorial so hopefully it isnt confusing. I decided to add fishing to my game but realized it was way too simple and boring to just go to water and hit the action button. I decided to make fishing much like Harvest Moon. Here's my tutorial on how to make Twitch Skill Fishing.


Step 1: Variables
First we need to initialize two variables.

The first will be our timer, so I'll call it Fishing Timer. Lets set that to 0

The second is our random, variable. I'll name is just Random. Lets set that to a random number between 20 and 120. This will be how many Frames it takes for the fish to appear


Step 2: The Wait
Since we cant tell the wait command how long to wait based on a variable, we have to find a workaround. Here's how.

Start by making a Loop.
Inside the loop make a Wait command of 1 Frame.

To find out how many times the loop has run, we simply do Fishing Timer +1

Now we have exactly what we want to know how long we need to wait.
Make a conditional branch with the condition Fishing Timer == Random
This finds out, did we wait the number of frames that was randomly selected?

Once we have we need to break out of this loop of waits.
Inside of the conditional branch do:
Reset Fishing Timer to 0 because we are going to use this again in a second.
Now put a Break Loop after resetting the Fishing Timer.


Step 3: A Notice
Next I put a Sound effect to make the player know a fish has bitten. Make sure that this is after everything else we have done.


Step 4: Catching The Fish
Ok next is deciding if the player caught a fish.
We need to make another Loop with Wait 1 Frame

Now is did the player push the A button?
Make a conditional branch with the condition A button being pressed.

Inside of this Conditional Branch is what happens when the player catches the fish. So for now I'll put Show Text "You caught a fish!"
After the text use Exit Event Processing so we dont run anything else.
After this conditional branch we need to do Fishing Timer +1

After we add a +1 this is where we decide how long the player gets to push the A button.

Make a conditional branch that is Fishing Timer == 10 or however long in Frames you want to give them.
Inside of this branch is what happens if the player didnt catch any fish. For now just Show Text "You failed to catch anything!" and leave the event by Exit Event Processing Again.


Step 5: Fixing Bugs
Almost done! We have a bug right now though. The player can easily cheat and just hit the A button over and over. How do we fix this? Simple. Use the same idea as before with the A button. Lets go back to the first loop we made. Use the same exact conditional branch as in the 2nd loop and paste it here. It really doesnt matter where as this just finds out if the A button was pushed at anytime during the waiting period.
Anyway, inside of the conditional branch put Show Text "You failed to catch anything!" And Exit Event Processing

Done! Now this can easily be applied to anything you want twitch based in your game!

Attached File  Fishing_1.png ( 36.36K ) Number of downloads: 123


__________________________
Fishing Tutorial - Twitch Skill

[Show/Hide] Picture

Waiting for that event sub forum...

Go to the top of the page
 
+Quote Post
   
Darkreaper
post Feb 22 2010, 06:39 PM
Post #2


Level 11
Group Icon

Group: Revolutionary
Posts: 171
Type: Developer
RM Skill: Advanced




Very concise. Lot simpler than my fishing game laugh.gif
Are you going to add in the option of actually trying to land the fish by reeling it in and all that?


__________________________



Go to the top of the page
 
+Quote Post
   
Logan110
post Feb 22 2010, 10:15 PM
Post #3


Level 15
Group Icon

Group: Revolutionary
Posts: 271
Type: Event Designer
RM Skill: Advanced




I never had that in mind, but if you wanted it done I could. I'm assuming just by mashing the A button to reel it in? Other than that I would need to get a bunch of graphics to "tell" the player what to do aka push left because the fish is pulling off to the right.


__________________________
Fishing Tutorial - Twitch Skill

[Show/Hide] Picture

Waiting for that event sub forum...

Go to the top of the page
 
+Quote Post
   
Darkreaper
post Feb 23 2010, 07:54 AM
Post #4


Level 11
Group Icon

Group: Revolutionary
Posts: 171
Type: Developer
RM Skill: Advanced




i set X to reel in, and Y to reel out. That way you can let the tension off the line when the fish tries to get away


__________________________



Go to the top of the page
 
+Quote Post
   
Holder
post Feb 23 2010, 04:32 PM
Post #5


Spoilers.
Group Icon

Group: Revolutionary
Posts: 4,204
Type: Developer
RM Skill: Advanced
Rev Points: 250




Nice tutorial I've added it to the A-Z listings for both RM XP and VX, I may end up just making a multiple engine section.


__________________________

 I'm running the Great North Run in September in aid of NACC. A condition my wife has in it's severe form.
Please sponsor me with whatever you can, thank you.
If you'd like to help spread the word please share the image and link to my fundraising page.

Go to the top of the page
 
+Quote Post
   
Wellus
post Jan 3 2012, 07:34 PM
Post #6


Level 4
Group Icon

Group: Member
Posts: 54
Type: Event Designer
RM Skill: Intermediate




we know...
Your "special" darkreaper".

great tutorial logan, simple, efficient .
to be honest the less buttons players have to press the easier it is smile.gif

unless I'm creating a game called "BASS FISHING 3000" with a 3D game engine I'm all for the simplicity.

This post has been edited by Wellus: Jan 3 2012, 07:36 PM


__________________________


My userbar was made with Paint.
Go to the top of the page
 
+Quote Post
   
RzrBladeMontage
post Jan 3 2012, 10:34 PM
Post #7


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




Wellus, this tutorial is almost a year old with no new posts since February of 2010. Please read the rules for certain areas of the forum as this is necroposting, again.

Locked.

- Rzr


__________________________





Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 03:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker