Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: proskiier on Sat 10/11/2007 20:13:01

Title: Object.move not working for me(SOLVED TY GUYS)
Post by: proskiier on Sat 10/11/2007 20:13:01
  // script for Hotspot 1 (birdnest): Use inventory on hotspot
  if (cEgo.ActiveInventory == iEgg) {
  Display ("The mama bird drops you the key");
  cEgo.LoseInventory(iEgg);
  object[0].Visible = true;
  object[0].Move(134, 183, 4);
}


this code does not move the key(from the air 134,71) to the ground which is (134,183)

did i do something wrong?? it does everything up the the   object[0].Visible = true; (because I can see the key)

i tried adding eBlock so that I cant move until it drops but that did not work either... thanks for help in advance :)


{and on another note...}
when I go into my bedroom, I kinda made it way to big, is there any way to double my character size without redoing all the sprites??
Title: Re: Object.move not working for me
Post by: Dualnames on Sat 10/11/2007 20:29:18
Yes, you can use scaling.
put this code
cEgo.ManualScaling = true;
cEgo.Scaling = 200;

I'm not sure if the second line is correct.Anyway search your help for manual and scaling.
Title: Re: Object.move not working for me
Post by: SSH on Sat 10/11/2007 20:47:33
It's probably not on a walkable area, so you need to use the eAnywhere as the 5th argument to Move
Title: Re: Object.move not working for me
Post by: quixotecoyote on Sat 10/11/2007 23:02:19
It's probably easier just to set the zoom level for the walkable area than to set manual scaling, unless he's got other sprites he doesn't want scaled.
Title: Re: Object.move not working for me
Post by: Dualnames on Sun 11/11/2007 00:36:51
If you put it that way. Yeah I guess so.