The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: game_guy on August 24, 2010, 04:14:47 PM

Title: [XP] Base Fishing or Swimming System
Post by: game_guy on August 24, 2010, 04:14:47 PM
Base Fishing or Swimming System
Version: 1.0
Type: Terrain Detection System

Introduction

Basically, when people want to create a fishing or swimming system they need to figure out how to check to see if the player is facing towards any bit of water. And they also got to make sure they are standing near teh water as well. This system makes it easy. Basically, all you need to do to set it up in your game is to change the terrains and common events that are called.

Features


Screenshots

Spoiler for Facing Away From Water:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi678.photobucket.com%2Falbums%2Fvv143%2FGameGuysProjects%2Fbasewater1.png&hash=1b6014a542662385df4b555ef212c4c9e1449dbf)
Spoiler for Facing Water:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi678.photobucket.com%2Falbums%2Fvv143%2FGameGuysProjects%2Fbasewater2.png&hash=995cb79a98edca113b436b3ba6db4c2ddb7def15)

Demo

Self Extracting Demo (http://decisive-games.com/ggp/Terrain%20Tags.exe)
Zip Folder (http://decisive-games.com/ggp/Terrain%20Tags.zip)

Instructions

To place this in your game, just copy the common event and paste it in your own game. Change the Common Events that get called. Change the terrain tags.

Basically, you need 1 variable and 1 common event. Just follow the pictures.
For the conditional branches that get cut off, heres the full code.
Note that the 2 is the terrain tag for your water tile.
Code: [Select]
When Facing Down
$game_map.terrain_tag($game_player.x, $game_player.y + 1) == 2
When Facing Up
$game_map.terrain_tag($game_player.x, $game_player.y - 1) == 2
When Facing Left
$game_map.terrain_tag($game_player.x - 1, $game_player.y) == 2
When Facing Right
$game_map.terrain_tag($game_player.x + 1, $game_player.y) == 2
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi678.photobucket.com%2Falbums%2Fvv143%2FGameGuysProjects%2Fwaterevent1.png&hash=f4128014b9b39f414401cbe761dcee209e0ebe59)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi678.photobucket.com%2Falbums%2Fvv143%2FGameGuysProjects%2Fwaterevent2-1.png&hash=12cd7fa7288b35dc6e98b8acdd8977c4ce0f00e4)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi678.photobucket.com%2Falbums%2Fvv143%2FGameGuysProjects%2Fwaterevent3.png&hash=d03b6bc01ca5d6ef9210e94d2e0b1760b693fc74)

Credits and Thanks


Author's Notes

Enjoy!
Title: Re: Base Fishing or Swimming System
Post by: DarkGamer on August 24, 2010, 07:32:39 PM
good one
Title: Re: Base Fishing or Swimming System
Post by: game_guy on August 24, 2010, 10:06:14 PM
Thanks. Its quite simple in my opinion with just one event system. Figured it'd be good to release and it'd help some people who are eventers.
Title: Re: Base Fishing or Swimming System
Post by: skaraflame on September 10, 2011, 01:31:28 PM
I hate to revive a dead thread, but the links are dead.