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
→
Any length actor with beginning, tileable middle, and end art.
Pages:
1
Any length actor with beginning, tileable middle, and end art.
HidetoKoudanshi
Posts: 127
October 30, 2021, 03:34:09 am
I want to create buttons than can be any length/width. They would have the beginning or leftmost part of the button or beginning cap, a middle that can be repeated to create the length/width, then the rightmost part of the button as an end cap. Is that currently possible and if so, how would I do that?
Like: (| and = and |) to make (|========|).
If I ever commission you for code work, please know that I understand how commissioning works. You must get paid first before you will code anything for me. Only once you are paid the agreed-upon price, will you begin coding for me. I respect artists and coders. You deserve to be paid for your hard efforts.
Luyren
Posts: 2812
October 30, 2021, 06:13:25 am
https://luyren.itch.io/luyrens-rpg-elements-resource-pack
This resource pack includes a behavior called Resize Menu Windows. When you attach it to your actor, you can use the behavior's custom block to resize an image using the 9-slice method to any width/height you want without distortion on the cornes. There's a pdf file explaining how to use it.
If you want to learn about images, I explain about it here:
https://youtu.be/aAghaRSgY3o
You can achieve what you want by combining different images yourself.
Regardless of which one you chose, this only resizes the image though. You'd still have to scale the actor to the appropriate width and height if you want collision for it, which can be done with a regular block.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Pages:
1