RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[XP] Base Fishing or Swimming System

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 84
Yes, hoh my gawd!
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 for Facing Away From Water:
Spoiler for Facing Water:

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.
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:



Credits and Thanks

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

Author's Notes

Enjoy!
« Last Edit: February 23, 2014, 04:10:09 PM by modern algebra »

****
Rep:
Level 84
Will you join me in the dark side...?
My Puzzle/StandAlone game in a week:


***
Rep:
Level 84
Yes, hoh my gawd!
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.

****
Raped by DrSword
Rep:
Level 83
Dance with the enemy
Contestant - GIAW 10Contestant - GIAW 9
I hate to revive a dead thread, but the links are dead.