AdjustSpeedWithScaling only in one room

Started by Adrian, Fri 09/07/2010 10:55:19

Previous topic - Next topic

Adrian

Hi everyone!

Is it possible to change the walking speed of characters depending on scaling in only one room instead of globaly all rooms? I couldn't find any script commands.

Thanks!

Crimson Wizard

Change it when room loads and change back when character leaves the room?

Dualnames

Quote from: Adrian on Fri 09/07/2010 10:55:19
Hi everyone!

Is it possible to change the walking speed of characters depending on scaling in only one room instead of globaly all rooms? I couldn't find any script commands.

Thanks!

it is possible to change the walking speed.
Let's say the room you want is room number 64.

Global Script/Some Module

Code: ags

function on_event(EventType event, int data) {
 if (event==eEventBeforeFadeIn) {
   cEgo.ScaleMoveSpeed = false;//normally walking speed doesn't depend on scaling
   if (data==64) {
       cEgo.ScaleMoveSpeed = true;//on room 64 it depends on scaling
   }
 }
}
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Adrian

Great, that's it! Sometimes I'm just too stupid to find a simple script command.
Thanks to both of you!!!

SMF spam blocked by CleanTalk