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
→
How to make a in the air jump
Pages:
1
How to make a in the air jump
joho345
Posts: 16
January 10, 2016, 08:47:50 am
Hi,
I work on a game, where the player hangs in the air. The controls are just left and right. If the player is not pressing any button, he falls by gravity on the ground and is dead. If he presses left or right, he makes a small jump in the are and in the direction of left or right (see pic in the attachment) How can I program this thing?
t4u
Posts: 418
January 10, 2016, 10:03:09 am
on button push actor in y direction and push actor in x direciton (or -x depending on arrow). This will do a jump and moxing to the dside. Do you really need a fountain like movement?
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.
Tutorials + downloads:
http://t4upl.blogspot.com/
joho345
Posts: 16
January 11, 2016, 01:47:48 pm
Yes I need this fountain like movement. With your solution it does not work. Has somebody an other solutions?
t4u
Posts: 418
January 11, 2016, 02:15:49 pm
You need to make it as function that describe position(time).
You got two phases:
1. going up - simple increase y over time
2. circle to the side - check parametrical circle equation
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.
Tutorials + downloads:
http://t4upl.blogspot.com/
Pages:
1