TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Trouble figuring out a custom block setup(SOLVED)
Pages:
1
Trouble figuring out a custom block setup(SOLVED)
poehyrulian
Posts: 78
December 12, 2016, 12:01:48 pm
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
December 13, 2016, 12:25:36 am
There is a bock under properties called width of actor.
poehyrulian
Posts: 78
December 13, 2016, 12:38:14 am
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
December 13, 2016, 12:45:40 am
Maybe you can use the for each actor of type block then choose the menu actor.
LIBERADO
Posts: 2718
December 13, 2016, 12:52:23 am
Install this great extension made by
yoplalala
:
http://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
December 14, 2016, 11:12:36 pm
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.
Pages:
1