Author Topic: Save point System? [xp]  (Read 1958 times)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1509
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Save point System? [xp]
« on: January 03, 2012, 11:59:49 AM »
I'm trying to event a small 'save point' as in kingdom hearts. When the player touches the save point, it automatically changes its look, and heals the player. While on a different look if the player presses the action button, (enter/space), it opens up a menu asking to save or exit to the world map.When the player steps off the save point, (or stops touching it in rmxp language), it goes back to its original look.

I'm having a problem making it go back to its original look. I don't know exactly how to check if the player is still standing on the event. I need help to find some way to check if the player has stopped touching the event.

Any ideas?

Offline Fenriswolf

  • Awakened Visionist
  • **
  • Posts: 81
  • LV: 2
  • Gender: Male
    • View Profile
Re: Save point System? [xp]
« Reply #1 on: January 04, 2012, 02:03:09 PM »
There is probably an easier way to do this, but you could make 1 event on each side of the save point,
which turn off a switch on touch ;)

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Lexima Warrior
  • ****
  • Posts: 2957
  • LV: 369
  • Gender: Male
  • Bringer of Salt
    • View Profile
Re: Save point System? [xp]
« Reply #2 on: January 06, 2012, 06:30:21 AM »
Or do the "I think this is the most obvious way to do it" solution, which would be making a parallel process that checks the save point and the player's X- and Y-coordinates. If they match up, Switch is on. Otherwise, Switch off.



(click to show/hide)
NNID: KK20-CP

Offline MarkHest

  • Video Game Music Composer
  • Astral Trancist
  • *****
  • Posts: 700
  • LV: 16
  • Gender: Male
  • Smile, Laugh, Live
    • View Profile
    • My Youtube Site
Re: Save point System? [xp]
« Reply #3 on: February 06, 2012, 01:40:11 PM »
The way i would do this is place the save point and put it to "Players Touch". When the player touches(stands on) the event it switches to another switch that is set to be activated when you press it. (This is what you've done)

THEN i would add events ALL AROUND the savepoint that when you touch them it turns the switch off again and WOALA!
Works like a charm and it's suprisingly easy ;)

You can even make them give the save point an ending animation when stepped on but then you gotta put a switch in those events around the savepoint as well taht turns on/off the events around the savepoint.
When stepped on the savepoint, switch ON the switch that activates the events around the save point and then turn OFF the switch that switches the savepoint animation when you step on the events around the savepoint.

A switch is only necessary in the outside events if you want an ending animation to the savepoint as you step out of it.
I think you know how that works :)
« Last Edit: February 06, 2012, 01:44:43 PM by MarkHest »
   

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1509
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: Save point System? [xp]
« Reply #4 on: February 08, 2012, 04:30:27 AM »
well thanks for the help but due to the fact that it is pretty annoying to do that every time, I just decided to leave the same animation under the player while they are standing on it. Thanks for the ideas though! I need this on one map for every world so any other way would just be..way..too..annoying lol.