public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

RMXP / VX / ACE - Draw lines between two points

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: RMXP / VX / ACE - Draw lines between two points
  • Original author: DevRPG2k
  • Original date: December 7, 2025
  • Source thread: https://forums.rpgmakerweb.com/threads/rmxp-vx-ace-draw-lines-between-two-points.181330/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Scripts In Development

Summary

Version: 0.1.1 (Beta) Changlog: 2025.12.08 Improved screen size verification, easy color system, anti-lag option. This script allows you to create colored lines connecting events, or from the player to a map event, eliminating the need to create events in parallel and use game variables.

Archived First Post

Version: 0.1.1 (Beta)
Changlog:
  • 2025.12.08 Improved screen size verification, easy color system, anti-lag option.
This script allows you to create colored lines connecting events, or from the player to a map event, eliminating the need to create events in parallel and use game variables.

It's still a script that can be improved.

Possible future improvements:
  • Select colors by ID from a palette (Array)
  • Perhaps increase the line limit (even with the lag issue)
  • Adjusted to work with common events in case a map event does not exist.

License:
  • Both Non-Commercial and Commercial usage is allowed
  • No need to add credits
  • Modifications are released

Download: [RMXP VX VXA] Paint Module.rb

Video:


Instructions:

Create a line between two characters on the map:
Paint.setline(LineID, CharID, CharID, Color, Height Y-Fix)
LineID: 0..7 (To avoid lag, the limit of simultaneous lines is 8)
CharID: A value of 0 will point to the player, while 1 or higher will point to the event on the map.
Color: You can define a custom color or use one of the 8 initial colors, via the color ID or name; the name can be written in lowercase or uppercase letters:
"black" or 0
"red" or 1
"green" or 2
"blue" or 3
"yellow" or 4
"fuchsia" or 5
"aqua" or 6
"white" or 7

Y-Fix: The default height is -12 from the base of the character set graph.

Examples:
Enable line 3 to go from the player to the map event with ID 1:
Ruby:
Paint.setline(3,0,1)

Enable line 0 to go from event 2 to event 4 with the color blue:
Ruby:
Paint.setline(0,2,4,Color.new(0,0,255))

Connect line 7 with the standard color, but with graphic 28 higher:
Ruby:
Paint.setline(7,0,4,nil,28)

Delete a specific line:
Paint.eraseline(ID)

Examples:
Delete line 8:
Ruby:
Paint.eraseline(7)

Delete all lines:
Paint.clearlines

Anti-Lag:
This allows for fewer pixels to be drawn, making the game smoother.
Paint::ANTI_LAG = 2 (2 or more)

A brief explanation of how colors work:
The Color class in RGSS functions similarly to other environments, but allows the use of transparency.
The Color.new command is used to return a color based on the values you enter (0~255).

Color.new(Red,Green,Blue)
Color.new(Red,Green,Blue,Transparency)
There are online tools where you can convert colors into values to use in the script.

Here's a website that might help, although MS Paint also does this for color selection:

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

License: Both Non-Commercial and Commercial usage is allowed No need to add credits Modifications are released

Referenced Images / Attachments

www.color-name.com
www.color-name.com
www.color-name.com
www.color-name.com
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#rgss-development

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar