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
→
[solved] How to make enemy doesn't fall over the edge with their movement?
Pages:
1
[solved] How to make enemy doesn't fall over the edge with their movement?
corbanwolf
Posts: 223
March 09, 2018, 07:07:53 pm
How to make enemy goes from one edge of platform to another and never fall? I could place invisible actor that collides only with enemy that would prevent from falling, but this solution is not very mobile and versatile. I thought about collision shapes. But if right/left border isn't hit doesn't work.
https://youtu.be/5apu4ML9Wto?t=5m38s
just like this red tortoise doesn't fall off
« Last Edit: March 11, 2018, 10:11:18 am by corbanwolf »
♪♪♪♪♪♪
Vaibhav Sangwan
Posts: 160
March 09, 2018, 07:56:07 pm
The actors were a good idea.You can create long vertical,invisible actors set to cannot be pushed.
You can try using regions.
At the very beginning of scene,add all the regions,which are at edges of platforms, in a list and in when updating event of enemy,continuously check if it is inside any region from the list.
Currently working on:-
http://www.stencyl.com/game/play/42376
Feedback will be really appreciated
LIBERADO
Posts: 2720
March 10, 2018, 02:08:53 am
You can use the
Tile API
to detect if the enemy is near the edge of any platform made with tiles:
http://static.stencyl.com/games/38390-0.swf
« Last Edit: March 10, 2018, 02:22:02 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.
Vaibhav Sangwan
Posts: 160
March 10, 2018, 02:27:00 am
Why didn't I think that?
I will get better with time.
Currently working on:-
http://www.stencyl.com/game/play/42376
Feedback will be really appreciated
corbanwolf
Posts: 223
March 10, 2018, 06:57:59 am
Thanks. I didn't know that TILE API exist and what is it. I can see this is a very powerfull tool for making movement of enemies more natural. That's what I managed to do. I attach the pic so maybe it will be helpful for someone.
♪♪♪♪♪♪
MNR Art
Posts: 48
November 15, 2018, 04:31:01 pm
this was very useful thanks
Bombini
Posts: 1400
November 15, 2018, 11:09:18 pm
Nerver under estimate almighty TILE API guys
Seriously..so many cool things can be done.
Pages:
1