Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - A Little Help Here! ^^

Save-Point

Full Version: A Little Help Here! ^^
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello guys, I know I've asked this here (I know you can just ask? OO), but wanted a script that would lock the screen in events.
* As well in events?
-While we played, it is natural q screen follow the right player? Yeah, I want a script that when activated, can stop following the player and start following an event.
Got that?
I could use a comment or command "Call Script" in the event and set new event to be followed:
# focus on ID [X]
if "x" is zero, then the screen returns to normal, following the hero as usual, if greater than zero (1, 2, 3, etc ...) it will follow the event that you have that ID!
Thank you for listening!
It helps if you can put what you want in the Subject.

Anyways, here's a script.
Code:
class Game_Character
  #--------------------------------------------------------------------------
  # * Move toward Event
  #--------------------------------------------------------------------------
    def move_toward_event(id)
    if id == 0
      track = $game_player
    else
      track = $game_map.events[id]
    end
    # Get difference in player coordinates
    sx = @x - track.x
    sy = @y - track.y
    # If coordinates are equal
    if sx == 0 and sy == 0
      return
    end
    # Get absolute value of difference
    abs_sx = sx.abs
    abs_sy = sy.abs
    # If horizontal and vertical distances are equal
    if abs_sx == abs_sy
      # Increase one of them randomly by 1
      rand(2) == 0 ? abs_sx += 1 : abs_sy += 1
    end
    # If horizontal distance is longer
    if abs_sx > abs_sy
      # Move towards player, prioritize left and right directions
      sx > 0 ? move_left : move_right
      if not moving? && sy != 0
        sy > 0 ? move_up : move_down
      end
    # If vertical distance is longer
    else
      # Move towards player, prioritize up and down directions
      sy > 0 ? move_up : move_down
      if not moving? && sx != 0
        sx > 0 ? move_left : move_right
      end
    end
  end
end

Make a custom Move Route, with a "Set Script" of move_toward_event(id) id of 0 is player, any other number is an event id.
I just realized that you were asking for CAMERA following, not event following. whoops.
Why not do a swap? I mean quickly swap places of your 'moving event' with that of your 'static location player' while making them also change in appearance.

Example: Your hero, Zenia, is in the upper corner of a map next to a throne. Her sidekick, Gabbie, is near further down. NOW... you make an event that places your player at Gabbie's spot while teleporting the Gabbie event next to the throne. At the same time, change your player to use Gabbie's characterset and change the Gabbie event to look like Zenia. If done quickly enough, no one should see any flicker and assume that your hero is still standing next to the throne.... Then just move the player around. As far as anyone would know, the camera would be following Gabbie.
Not DerVV, I need the script to make a Battle System by events, takes to the moment I go to switch player on the team.
Oh. You're looking for a BATTLESYSTEM'S camera feature!!! Shocked Ya didn't say that. Winking

If you are looking for a system that will focus on your actor and enemy battlers and ... even rotate the camera perspective... you may want to look at Golden Sun Camera Battle System!!! Dude, it works with both the default system and my Animated Battlers sideview system. Heck... It even works with Charlie Fleed's Final Fantasy CTB system.

It may be something you'll find VERY entertaining. Laughing
I might be able to work something out.
Oh man [Image: facepalm.gif] , you're understanding it wrong.
I'll make a battle system using events, only need this script for when I change players.
Ex: A tactical battle system. Have a staff member there at the top, and another downstairs, I play first with the top, then the screen is focused on it! Now play with what's down there, so now the screen is focused on another team member (which is at the bottom of the map). You see, I not a tactical battle system, I am giving an example of the movement of the fabric used in this kind of battle!
Get it?
I understand what you want now, I think. Sorry for the confusion. I wrote this in 10 minutes on my lunch break, and it almost works.

something like:
Code:
$game_map.display_x =
$game_map.events[1].real_x

$game_map.display_y =
$game_map.events[1].real_y

In a parallel process Script event.
Eh, this script ended up there okay? -_-"
I found it very ... brief, short, small, tiny, etc ...
Pages: 1 2