Trouble figuring out a custom block setup(SOLVED)

poehyrulian

  • Posts: 78
Im having trouble figuring out how to create a custom block that get the width of an actor type. any help would be appreciated. the trouble is that i dont how to find the width of the actortype to tell the block what it is.

« Last Edit: December 14, 2016, 11:14:11 pm by poehyrulian »

colburt187

  • *
  • Posts: 2416
There is a bock under properties called width of actor.

poehyrulian

  • Posts: 78
So far i havent figured out how to properly implement it. Its calls for a specific actor not a type. The width of tye actor im trying to get diesnt exist within the scene until after the menu is opened otherwise i wouldnt have an issue. Its for a menu behavior im creating. Id set it to an attribute after i create it but for some reason im getting an error when i try that

colburt187

  • *
  • Posts: 2416
Maybe you can use the for each actor of type block then choose the menu actor.

LIBERADO

  • *
  • Posts: 2718
Install this great extension made by yoplalalahttp://community.stencyl.com/index.php/topic,46934.0.html
   
Then, use this block:
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

poehyrulian

  • Posts: 78
Thank you very much liberado for the link. itll be a huge help in the future. i decided to jusy figure out the position i wanted the button to spawn at and the created an x and y att to work off of which is turning out nicely but in the future will use this to start of with haha.