Permanently modifying move speed
#6
Yep.  

BUT!!!!    To achieve the same feature for events, place the same attr_accessor statement within Game_Character and Game_Event.

That way, you can use:

$game_map.events[event_id].move_speed = value

attr_accessor allows you to read and write the specified value to/from that class.
attr_reader allows you ONLY to read from that class (within reason)

The Event and Player classes merely 'inherit' data and methods from Game_Character....
.... (Game_Player < Game_Character ) ....
So you don't need to add all the methods from Game_Character into Game_Player.  There is no 'moving' or 'jumping' methods in Game_Player.  But they exist in Game_Character.  ;)  Game_Player is what we call a 'child' class.  It's daddy is Game_Character, and since the methods are in Character.... Player has access to them.

But you still want to add the attr_accessor statements to all the classes.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Permanently modifying move speed - by Keeroh - 05-24-2017, 01:51 AM
RE: Permanently modifying move speed - by Keeroh - 05-24-2017, 02:44 AM
RE: Permanently modifying move speed - by Keeroh - 05-24-2017, 05:00 AM
RE: Permanently modifying move speed - by DerVVulfman - 05-24-2017, 05:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Possible means to speed up Bitmap TONE code? DerVVulfman 7 3,092 06-11-2023, 08:22 PM
Last Post: kyonides
   Help modifying a script Keeroh 7 10,209 06-11-2017, 04:43 PM
Last Post: DerVVulfman
   Just move the Cursor of the Item_Scene to the right Djigit 24 24,387 08-18-2015, 03:00 AM
Last Post: DerVVulfman
   Meagan's Particles' speed Raou 6 9,248 04-01-2015, 03:43 PM
Last Post: Raou
   Atoa ACBS Target move wrong after move to center Djigit 4 6,552 08-04-2014, 05:16 AM
Last Post: Djigit
   Possible to move battle actors when escaping? NewHope 8 13,758 07-27-2012, 06:14 AM
Last Post: NewHope
   Modifying Actor ID to Class ID for Advanced Individual Battle Commands Script NewHope 1 4,630 07-11-2012, 11:37 PM
Last Post: NewHope
   Pixelmovement and speed ark 2 5,656 05-31-2010, 05:51 PM
Last Post: ark



Users browsing this thread: 2 Guest(s)