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
→
Resolved Questions
→
Platform that drops when landed on... [solved]
Pages:
1
Platform that drops when landed on... [solved]
sebstarr
Posts: 259
June 07, 2013, 08:24:53 am
Hey, I'm wondering how to make a platform that will hover in the air. But when an actor lands on it - the actor bounces off and the platform falls to the ground...
Any help would be most appreciated!
« Last Edit: June 08, 2013, 01:56:20 pm by sebstarr »
Tuo
Posts: 2469
June 07, 2013, 12:45:10 pm
In the collision events for the player (can reverse the actors to do it in the platform's events):
when self hits (actor of type FallingPlatform)
Set y-speed of self to -50
Set y-speed of (actor of type) to 30
Something like that should give you the desired effect.
Don't look to me but rather to the One who is the reason for what I do.
If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.
If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (
http://community.stencyl.com/index.php/topic,16160.0.html
)
sebstarr
Posts: 259
June 07, 2013, 02:35:52 pm
I'm pretty new to this. Just tried this and the actor went straight through the platform.
Not sure where I've gone wrong with the event coding...
Tuo
Posts: 2469
June 07, 2013, 02:39:23 pm
Check your collision groups and make sure the player's group is set to hit the platform actor (and that neither is a sensor).
Don't look to me but rather to the One who is the reason for what I do.
If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.
If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (
http://community.stencyl.com/index.php/topic,16160.0.html
)
Hectate
Posts: 4643
June 07, 2013, 03:06:35 pm
My preference was to have two actors for this - one set to "cannot move" and the other affected by gravity. Both should look the same, obviously. Then, when the "cannot move" one detects the player touching it, after a brief countdown it kills itself and replaces itself with the gravity one.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.
Pages:
1