Alice Community Help with Jumping onto objects and gravity

 Help with Jumping onto objects and gravity
 Nitrous3 Member   Status: Offline Posts: 16 Join Date: Sep 2011 Help with Jumping onto objects and gravity - 10-20-2011, 09:47 PM Is it possible? Suppose I wanted my character to jump above objectwhatever, and as he's landing, descend at a rate where he lands on objectwhatever and can move freely on it and then once he is no longer above objectwhatever, descend back to the original ground I'm sure you understand what I'm talking about ..or maybe not. Any help is appreciated.
 GameKid Senior Member     Status: Offline Posts: 467 Join Date: May 2011 Location: My magnificent castle 10-20-2011, 10:20 PM Functions and If/Else statements are crucial to gravity. Create an event, while the world is running. Then, place a low-poly dummy object at the feet of your character and vehicle the character to the object. Create a method. This is where the dummy object comes in. Select the dummy object, and create a variable to make it move down. Go to the functions tab of the dummy object and scroll down until you see "Distance above". Place that on the amount of meters to move down and select "Ground". A short briefing of what that just did: While the world is running, dummy object (Character's vehicle) move down dummy object's distance above the ground. If you want a platform, use an if/else statement in that, using various functions from selecting the world and selecting the dummy object: If dummy object is above platform: Move down dummy object's distance above platform. Else: Move down dummy object's distance above ground. I hope this helps. [COLOR=e4eaf2]Your text here[/COLOR] Come on, you know you want to try it.
 Nitrous3 Member   Status: Offline Posts: 16 Join Date: Sep 2011 10-29-2011, 09:48 PM I can't seem to get the If/Then to work for your platform statement. The object successfully returns to the ground, but never to the surface of the platform which it's over
 InsertName Senior Member     Status: Offline Posts: 341 Join Date: Jun 2011 Location: In a house 10-29-2011, 09:50 PM I tried to make a platformer with mutiple levels, it failed. __№_₤⅞__ Handguns: http://www.alice.org/community/showthread.php?p=45349 MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208 My Stupid Animations: http://alice.org/community/album.php?albumid=119
 sfunk Senior Member     Status: Offline Posts: 1,112 Join Date: Mar 2011 Location: I don't know 10-30-2011, 05:08 AM http://alice.org/community/showthread.php?t=6897 go this this link, I helped another member with the same problem you are having, there are multiple ways of doing it, just check out each example I put on that thread and pick the one that works for you If you are stuck on a project, check out the tutorials I made here at this link: http://alice.org/community/showthread.php?p=36778#post36778 There are lots of tutorials on it so far, including some youtube videos, check it out Or.. Go to my youtube channel to check out my alice 2.2 tutorials I have there.. http://www.youtube.com/user/sfunk1992?feature=mhsn
GameKid
Senior Member

Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
10-31-2011, 01:13 AM

Quote:
 Originally Posted by Nitrous3 I can't seem to get the If/Then to work for your platform statement. The object successfully returns to the ground, but never to the surface of the platform which it's over
Perhaps it didn't work because the statement made was that your character has to be directly above the axis.
This is quite challenging... I'll post again when I think of something.

Come on, you know you want to try it.

 dakota95 Senior Member     Status: Offline Posts: 426 Join Date: Aug 2011 Location: like I would tell you. ;) 11-02-2011, 01:36 PM I tryed it and the best way I could come up with was If:"guy" within 1 meter above "box" move to "box" move up 1 meter else:move to ground move up 1 meter

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge