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
→
Shrinking actors and AI
Pages:
1
Shrinking actors and AI
Tacophobia
Posts: 8
December 31, 2011, 04:52:50 pm
Is there a way for me to shrink down the actors of my game without redoing all the animations?
Another thing, is it possible to have an enemy "chase" the player through the level?
Thank you in advance,
Taco
Abigayl
Posts: 807
December 31, 2011, 05:16:53 pm
In the actor behavior, in the palette, select Actors -> Tweening. There is a scale tween that you can use to shrink (use under 100%) the actors. For the chasing, you can use the arctan2 coding. You can see a demo of it in my fourth tutorial:
http://www.kongregate.com/games/Abigayl/stencyl-tutorial-4-mouse-based-shooting
(Just change the x of mouse and y of mouse to the x/y of the actor, will likely need to use game number attributes to do that).
If you need help, please check my tutorials either here or Kongregate (
http://www.kongregate.com/accounts/Abigayl
) or come over to my stream:
http://www.livestream.com/poweredbyflowers
Tacophobia
Posts: 8
December 31, 2011, 05:43:35 pm
Thank you so much! It worked perfectly!
Pages:
1