The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Event Systems => Topic started by: Punk on November 26, 2006, 02:32:26 AM

Title: [XP] Arrow Over Player's Head System
Post by: Punk on November 26, 2006, 02:32:26 AM
Are you really tired of not seeing your character because (s)he blends in with the map?

3 Common Events
3 Variables
2 Switches

Download this (http://i9.photobucket.com/albums/a64/punkid89/Demos/arrow.png)

Create two switches.

Name the 1st "Arrow System"
Name the 2nd "Arrow Display"

Now do the first common event. Name it "coordinates"
Make the trigger parallel process
Condition switch: Arrow System

Do this:

@>Control Variable: [0001: X] = Player's Screen X
@>Control Variable: [0002: Y] = Player's Screen Y
@>Control Variable: [0003: A Variable] = 60
@>Control Variable: [0002: Y] -= Variable [0003: A Variable]

This adjusts the coordinates of the picture.

Next

Make another common event, name it "Button" (Or whatever you want.)
Trigger: Parallel Process
Conditional Switch: Arrow System

@>Conditional Branch: Script: Input.trigger?(Input::L)
@>>Conditional Branch: Switch: [0002: Arrow Display] == OFF
@>>>Control Switches: [0002: Arrow Display] == ON
@>>Else
@>>>Conditional Branch: Switch: [0002: Arrow Display] == ON
@>>>>Control Switches: [0002: Arrow Display] == OFF
@>>>Branch End
@>>Branch End
@>Branch End

Lastly, make a new common event. Name it "Arrow Pictures."
Trigger: Parallel Process
Conditional Branch: Arrow System

@>Conditional Branch: Switch: [Arrow Display] == ON
@>>Show Picture: 1, 'Arrow', Center, Variable [0001][0002]), (100%, 100%)
@>Branch End
@>Conditional Branch: Switch: [Arrow Display] == OFF
@>>Erase Picture: 1
@>Branch End

Screenshots:
(http://i9.photobucket.com/albums/a64/punkid89/screenies/Theforest.png)
The forest!

(http://i9.photobucket.com/albums/a64/punkid89/screenies/Cantseeme.png)
Where am I?

(http://i9.photobucket.com/albums/a64/punkid89/screenies/ThereIam.png)
Oh, there I am...

Any questions, comments about this system?
Title: Re: Arrow Over Player's Head System
Post by: Best-Gammer on November 26, 2006, 02:40:30 AM
ima see if this works on rpg maker 2003
Title: Re: Arrow Over Player's Head System
Post by: Doctor Professor Nikolai on November 26, 2006, 03:18:43 PM
I don't get it, whats it do?
Title: Re: Arrow Over Player's Head System
Post by: :) on November 26, 2006, 03:21:26 PM
when your caracter is on the map, you press abutton and you can see an arrow appera over his head, so incase he is behind a tree and your running into a wall you wouldnt  know, but now you do
Title: Re: Arrow Over Player's Head System
Post by: Punk on November 27, 2006, 01:14:55 AM
Correct. That's what it does. :)
Title: Re: Arrow Over Player's Head System
Post by: Blizzard on November 27, 2006, 11:38:35 AM
Hey, it would be a great idea to make a script do it automatically if the player is behind a tile that has a higher priority than himself.
Title: Re: Arrow Over Player's Head System
Post by: Nightwolf on November 27, 2006, 12:43:54 PM
Yes but this is AWSOME!
Title: Re: Arrow Over Player's Head System
Post by: &&&&&&&&&&&&& on November 27, 2006, 02:54:35 PM
This is awesome!
Title: Re: Arrow Over Player's Head System
Post by: Doctor Professor Nikolai on November 27, 2006, 08:46:56 PM
oh! I got a cool idea =D but it need alot of eventing maybe. You walk behind a tree and its opicity drops, so you can see through it =D
Title: Re: Arrow Over Player's Head System
Post by: Punk on November 28, 2006, 02:50:45 AM
Yep, it'll require alot of eventing.
Title: Re: Arrow Over Player's Head System
Post by: Lord Dante on November 28, 2006, 03:12:09 AM
hm...perhaps. i think this way is just easier. good idea and good job executing it.
Title: Re: Arrow Over Player's Head System
Post by: Trackys on February 11, 2007, 05:19:02 AM
very good tut mate, but mine dosent seem to work, dunno if im doin it wrong but here is my ss of my Common Events etc etc

http://i115.photobucket.com/albums/n290/Trackys/coords.jpg <<< coordinates
http://i115.photobucket.com/albums/n290/Trackys/button.jpg <<< Button
http://i115.photobucket.com/albums/n290/Trackys/arror.jpg  <<< Arrow Pictures

any help would b awsome thanx in advance
Title: Re: Arrow Over Player's Head System
Post by: Blizzard on February 11, 2007, 02:11:32 PM
Hey, it would be a great idea to make a script do it automatically if the player is behind a tile that has a higher priority than himself.

I'll include this in the next release of my Tons of Add-ons. ;8
Title: Re: Arrow Over Player's Head System
Post by: Rukishou on February 18, 2007, 02:57:18 PM
Why doesn't this work for me? And how do I do so that its @> in the beginning of a line and not <>
?????
Title: Re: Arrow Over Player's Head System
Post by: Punk on February 18, 2007, 07:22:48 PM
@> (You see this when you have legal RMXP but if you have postality or some other RMXP, you'll see this <> I believe.)