じ☆ve冰风 发表于 7 天前

Drawing a line from character to events

Hello! I'm looking for a way to draw a line or multiple lines from the player character to different events, as part of a hint system for my current project. Basically what I want to have happen is, the player presses a 'hint' key, and it will briefly draw lines from the player character to specified points of interest on the map, like a thread. The way I'm wording it in my head is like, the player character's map X and Y are set as the 'parent', and I want to set different events' X and Y coordinates as the 'children'.

Additional optional things would be allowing the player character to move and have the lines dynamically adjust based on their positioning, as well as a way to draw them with some amount of visual 'slack' or 'weight' to them to really sell the 'thread' motif, but I imagine those would be much more difficult to implement.

Including some visual mock-ups to better illustrate what I mean:







Not sure how feasible or even possible any of this is in Ruby, but I figured I would ask regardless.


本贴来自国际rpgmaker官方论坛作者:LucaBicono处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/drawing-a-line-from-character-to-events.181219/
页: [1]
查看完整版本: Drawing a line from character to events