ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: [Solved][ask-rgss2]Command disabled Dash 2012-11-23, 14:12 | |
| Quick question aja, ane kan mau buat player gak boleh dash. Command scriptnya apa ya ? Alesan ane gak mau "ceklis disabled dash di Map properties" adalah si player gak bisa dash di sebuah plot, tapi di plot selanjutnya dia butuh dash (buat kabur). Edit : bukan ubah speed doank, intinya pas mencet shift player gk bole dalam status dash.
Terakhir diubah oleh yerry_great tanggal 2012-11-24, 16:27, total 2 kali diubah (Reason for editing : salah title ama pnjelasan lagi) | |
|
yeki Novice
Posts : 182 Thanked : 6 Engine : RMVX Ace Skill : Beginner Type : Scripter
Trophies
Awards:
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash 2012-11-23, 23:42 | |
| hm..kalo sepintas sih menurutku butuh script basic dulu kyk - Code:
-
class Game_Player < Game_Character attr_reader :dashing alias :yeki_dash_initialize :initialize def initialize @dashing = true end def dashing=(value) @dashing = value end def dash? return false if @move_route_forcing return false if $game_map.disable_dash? return false if in_vehicle? return Input.press?(Input::A) if @dashing reurn false end end
baru bisa dipanggil di event script - Code:
-
$game_player.dashing = true / false
tapi masih untestable...via hpe soalnya | |
|
ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash 2012-11-24, 07:58 | |
| oh... butuh snippet gitu ya Itu ada error katanya di default script 'Game_Character' line 235 :No method occur Undefined method '>' | |
|
yeki Novice
Posts : 182 Thanked : 6 Engine : RMVX Ace Skill : Beginner Type : Scripter
Trophies
Awards:
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash 2012-11-24, 08:07 | |
| aghhahah iya lupa naro aliasingnya nih yang bener - Code:
-
class Game_Player < Game_Character attr_reader :dashing alias :yeki_dash_initialize :initialize def initialize yeki_dash_initialize @dashing = true end def dashing=(value) @dashing = value end def dash? return false if @move_route_forcing return false if $game_map.disable_dash? return false if in_vehicle? return Input.press?(Input::A) if @dashing return false end end | |
|
ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash 2012-11-24, 10:55 | |
| Sip2 Solved. Thanks Yeki. Moga2 ntr malem bisa diupload ojek nya | |
|
yerry_great @> Moderator
Posts : 1251 Thanked : 15 Engine : Multi-Engine User Skill : Very Beginner Type : Jack of All Trades
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash 2012-11-24, 16:25 | |
| Locked since solved | |
|
Sponsored content
| Subyek: Re: [Solved][ask-rgss2]Command disabled Dash | |
| |
|