じ☆ve冰风 发表于 7 天前

Dedicated Run Button in RM 2003

An efficient way to have a running button, and it just needs 1 common event, 1 switch and 1 variable.






                Code:        
Key Input Processing: Conditional Branch: Variable == 7   Conditional Branch: Switch is ON               Else         Set Move Route: Player, Speed Up, Speed Up, Speed Up, Speed Up, Speed Up, Speed Down, Speed Down         Control Switches: = ON   Branch End   Else   Conditional Branch: Switch is ON         Set Move Route: Player, Speed Down, Speed Down, Speed Down, Speed Down, Speed Down, Speed Up, Speed Up         Control Switches: = OFF             Else         Branch End   Branch End



The reason I have it increase the speed all the way then decrease it some for running is so that it will always go to the correct speed I want. So if you want to run faster, don't decrease the speed so much after increasing it. Or if you want the walking speed different, either don't add as many speed increases, or add more if you want the walking speed faster.


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