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
→
Collision Detection Not Detecting
Pages:
1
Collision Detection Not Detecting
waelouaijan
Posts: 78
August 10, 2013, 03:02:37 am
Hi There,
In my new game it seems I am facing an issues with collision detection and I would really appreciate any advice I could get:)
1 - Collision Detection: As mentioned by others in the forum I have placed my "Tile" as an actor so it can self replicate. I have defined the collision points on the "tile" actor, and have set both the player and the actor in Collision groups which are meant to collide... I have also placed for both the player and the tile actor a {When Created -> Enable continuous Collision} block and I have selected it in both actors' properties. Though, for some reason, it seems that the actors do not want to collide. For some reason when the player comes in contact with the tile actor he goes straight through it as though nothing is there. Whereas, on the tile actor's front, I have set a block {always -> push object xdir [-1] ydir
} which seems to stop when the player passes through.
SadiQ
Posts: 1795
August 10, 2013, 06:21:28 am
Make sure your actors are not set as sensors!
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.
waelouaijan
Posts: 78
August 11, 2013, 06:47:43 am
Hi there,
I just double checked and neither actors had sensor behavior activated, though, I just realized it may be better to set the ground tile actor as a sensor behavior. Since it seems everytime both objects collide, the ground layer stops being pushed. Yet I am still facing the problem that when the player collides with the ground layer actor, the player passes right through it.
Pages:
1