Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Base Fishing or Swimming System

Started by game_guy, August 24, 2010, 04:14:47 PM

0 Members and 1 Guest are viewing this topic.

game_guy

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


  • 1 Common Event
  • Detects if player is facing water
  • Detects if player is standing next to water


Screenshots

[spoiler=Facing Away From Water][/spoiler]
[spoiler=Facing Water][/spoiler]


Demo

Self Extracting Demo
Zip Folder


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]

[/spoiler]


Credits and Thanks


  • game_guy ~ For making it
  • happyman ~ For requesting it


Author's Notes

Enjoy!

DarkGamer

My Puzzle/StandAlone game in a week:
[spoiler]Link to topic: http://rmrk.net/index.php/topic,34230.0.html
Link to Download: http://www.megaupload.com/?d=CH8FFWIE[/spoiler]


game_guy

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.

skaraflame

I hate to revive a dead thread, but the links are dead.