Placing a new shape and frame?

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Placing a new shape and frame?

Post by Knight Captain »

Is there a single command to place a new shape with a specific frame at the same time? If not, what is the best way to do this?
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: Placing a new shape and frame?

Post by Knight Captain »

This seemed to work for me:

Code: Select all

		{
			var newshape;
			{
				newshape = UI_create_new_object2(894, [2499, 2083]);
				script newshape {nohalt; frame 7;}
			}
			
			
			
		}
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Placing a new shape and frame?

Post by marzo »

You can also use set_item_frame intrinsic after creating it.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: Placing a new shape and frame?

Post by Knight Captain »

That does make more sense.
Locked