Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: MRollins on Wed 09/06/2010 00:55:28

Title: Problem with Object.Move
Post by: MRollins on Wed 09/06/2010 00:55:28
Right, so I have a guillotine in a scene and a timer set to drop it. No problem except when the guillotine drops it shoots out to the left and then tries to correct itself back to the correct coordinates to the right but doesn't quite make it.

I've tried removing all hotspots and objects below it thinking they might be interfering with the path but nothing seems to work. What would cause the object not to drop straight down,? I've tried setting .Solid to false but I get the same results.

Below is the code for the object movement. The blades starting coordinates are 198, 70.



if (IsTimerExpired(1)) {
    oBlade.Move(198, 141, 15, eBlock);


Title: Re: Problem with Object.Move
Post by: Gilbert on Wed 09/06/2010 01:59:41
Objects are also affected by walkable areas, try forcing it to move straight and see if that helps:
oBlade.Move(198, 141, 15, eBlock, eAnywhere);
Title: Re: Problem with Object.Move
Post by: MRollins on Wed 09/06/2010 02:40:29
Thanks! That worked. I didn't realze objects needed walkable areas.
Title: Re: Problem with Object.Move
Post by: Khris on Wed 09/06/2010 10:00:52
This is explained at length right in the manual entry for Object.Move.
Title: Re: Problem with Object.Move
Post by: MRollins on Wed 09/06/2010 16:27:35
Right, so obviously I missed that. Thanks for pointing that out so EVERYONE knows how smart and well versed with the manual you are...
Title: Re: Problem with Object.Move
Post by: Atelier on Wed 09/06/2010 16:33:43
Wut?
Title: Re: Problem with Object.Move
Post by: Calin Leafshade on Wed 09/06/2010 19:18:03
His point was that you should have read the relevant manual section *before* posting, not that he knows everything about the manual (although he actually does).

EDIT: also, you can actually just right click on the command in the script window any press something like "see function definition" and it takes you right there!

No excuse.
Title: Re: Problem with Object.Move
Post by: MRollins on Wed 09/06/2010 19:28:48
No, I get it loud and clear. But does he (or anyone else) need to be a d!ck about it? It was obviously something I overlooked in the manual. There's no need for him or anyone else to chime in after the question has been politely answered. 
Title: Re: Problem with Object.Move
Post by: Calin Leafshade on Wed 09/06/2010 19:36:22
well then everyone is happy.

You'll check the manual next time and Gilbert won't need to answer your question.

Problem solved :)
Title: Re: Problem with Object.Move
Post by: Khris on Thu 10/06/2010 02:01:54
MRollins, to me it sounds like you're the one who's being a dick about it, and I guess the reason is that my comment made you feel stupid.
Title: Re: Problem with Object.Move
Post by: Gilbert on Thu 10/06/2010 02:07:12
Sorry, Calin, but IMO Khris was really a bit rude here. The problem had already been solved and there is no need for him to put that in.

All right. Khris, since you just posted again. please refrain from posting such kind of comments and acting like a mod next time. As I said the problem is solved and I wouldn't mind people asking such questions in the forums and some solutions are not always as obvious as to people who really dig into the manual (as long as it's not a sign of laziness on not taking any effort to read and spam the forums continuous with basic questions).

You've been warned.
Title: Re: Problem with Object.Move
Post by: AdamM on Thu 10/06/2010 02:44:54
Well Gilbet, IMO Khris was just being incidental, and MRollins was really overreacting with such a sarcastic reply. It doesn't matter whether someone's comment is helpful or redundant; it was completely unnecessary to such a hostile tone. I would have appreciated Khris's post, as it would have made clear to me how the manual could have answered my question instead, and that this knowledge would be helpful the next time I need it.
Title: Re: Problem with Object.Move
Post by: xenogia on Thu 10/06/2010 02:49:14
People mis-interpret text :) Have a flower.
Title: Re: Problem with Object.Move
Post by: Gilbert on Thu 10/06/2010 02:57:43
Adam, maybe, but indeed the thread was done already and Khris' comment wasn't particularly useful in this case. There wasn't a need to make that reply, be it incidental or not. I appreciate his knowledge and understanding on stuff but there are many cases where he shouldn't need to add anything, be it being misinterpreted or not, or could have worded it better. I warned that as a whole and not only for this topic.
Title: Re: Problem with Object.Move
Post by: AdamM on Thu 10/06/2010 04:47:24
I just think you're berating the wrong person for the right reasons.
Title: Re: Problem with Object.Move
Post by: Khris on Thu 10/06/2010 09:38:18
In MRollins shoes I'd have appreciated my first comment. That's why I made it.
I'll admit that the second one was unnecessary.