Can't move object and drag & drop

Started by Swamp Witch, Sat 17/09/2005 04:51:26

Previous topic - Next topic

Swamp Witch

Move Object
I am trying to move an object and it won't move.  I have this:
object[1].Move(98, 77, 4); defined under the "run script" for the interaction.  This is a first person game using two characters.

Drag and Drop
Can someone tell me how to do this with 2.7 code.  I've tried several things and they are not working:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14984.0

Scummbuddy

They're not up to 2.7, but hopefully, they'll give some ideas:

Drag and Drop function: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14984.0

How to Grab and Use Object with Cursor: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18626.0

How to script click and drag puzzle pieces into place?: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=9963.0
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Swamp Witch

Thanks Scummbuddy, I'll take a look at these.

I am curious about this "move" statement though.  It won't work for me.  I unchecked "Enforce object-based scripting" in my general settings and scripted:
MoveObjectDirect (2,77,140,5); and the object moves

If I use:
object[2].Move(77,140,5); for 2.7, the object doesn't move.  I don't get it. 

Ashen

I'd guess, since it works with MoveObjectDirect it's because you're not using walkable areas.
Try:
object[2].Move(77, 140, 5, eNoBlock, eAnywhere);

(Look in the manual for fuller descriptions of the optional parameters.)
I know what you're thinking ... Don't think that.

Swamp Witch

Ah, the eNoBlock, eAnywhere did it.  Thank you!!!!

SMF spam blocked by CleanTalk