Couple of quick questions... (objects, moving objects & animation speed)

Started by LeChuck, Thu 20/10/2005 01:52:18

Previous topic - Next topic

LeChuck

1. I've got several object in the game I want to see, but not being "seen" my cursors, that change when hovering over objects. How do I avoid this?

2. Is there a way of having a character only move in only the y direction, independent of what x position it is? When doing MoveCharacter(character, int x, int y), you always have to fill in both x and y....

3. Is there a way of changing the animation speed in the IdleView? Not how long you have to wait for it to happen, but the actual animation's speed?

Sorry about the awfully general topic, but these things are really bugging me... :-*


Edit: Thanks Strazer! I had no idea you could set negative values in the view editor...

strazer

(AGS v2.7 code follows.)

1.) If you're using the built-in cursor animation routines, try setting the objects non-clickable ("oObjectname.Clickable = false;" in "First time player enters room" interaction). (See also this tracker entry.)

Otherwise, post your code that changes the mouse cursor's appearance so we can adjust it.

2.) Simply supply the character's current x-coordinate:
  cCharactername.Walk(cCharactername.x, NEW_Y);

3.) If it's one particular idle animation you want to change, you can try adjusting each frame's SPD (=delay) setting in the view editor.
I think the default idle animation speed is 5 (game loops delay per frame) and since you can enter negative numbers as well, setting all frames to "-2" for example should make the animation play faster.

SMF spam blocked by CleanTalk