Chaos Project

RPG Maker => Event Systems => Event System Database => Topic started by: G_G on August 23, 2010, 09:01:44 pm

Title: [XP] Base Fishing or Swimming System
Post by: G_G on August 23, 2010, 09:01:44 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

Facing Away From Water: ShowHide
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/basewater1.png)

Facing Water: ShowHide
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/basewater2.png)



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.
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: ShowHide
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/waterevent1.png)
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/waterevent2-1.png)
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/waterevent3.png)



Credits and Thanks




Author's Notes

Enjoy!