Hi,
I was wondering if, when you create an object, there is a way to have the object appear at a variable piont (such as the value of an ini or a counter) rather than using the co-ordinate editor?
Cheers,
James
[obj_create]
Printable View
Hi,
I was wondering if, when you create an object, there is a way to have the object appear at a variable piont (such as the value of an ini or a counter) rather than using the co-ordinate editor?
Cheers,
James
[obj_create]
You have to create the object first and then set its position through separate events. Example of creating an object at the position of the mouse:
[events:32]
* [obj_mousekb] User clicks left mouse button
- [obj_create] Create object slightly offscreen
- [obj_active] Set X position (co-ordinates) of object to xmouse
- [obj_active] Set Y position (co-ordinates) of object to ymouse
[/events]
Hi,
I'm not sure that would work, I will try it :).
What I am trying to do is load the positions of many objects in quick succession, and I think that might make all the ojects go into the same position.
Cheers,
James
EDIT: Tried it as the example shown in your post and it appears to work... I'll try it with my application.
ANOTHER EDIT: It doesnt work in my app but I think its a problem reading the INI.
Time for another issue of Strange But True: Click Edition, bringing you the fun quirks which make MMF2 an interesting tool to use.
Trying to create and move multiple instances of an object in one event will not work. They will both end up with the same position. Creating multiple objects is fine, but if you use actions to move one then actions to move another then it'll move both of them to the second location.