Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Help with Jumping onto objects and gravity
Old
Nitrous3
Member
 
Status: Offline
Posts: 16
Join Date: Sep 2011
Default 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.
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 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.
   
Reply With Quote
Old
Nitrous3
Member
 
Status: Offline
Posts: 16
Join Date: Sep 2011
Default 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
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 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
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 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
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 10-31-2011, 01:13 AM

Quote:
Originally Posted by Nitrous3 View Post
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.


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
   
Reply With Quote
Old
dakota95
Senior Member
 
dakota95's Avatar
 
Status: Offline
Posts: 426
Join Date: Aug 2011
Location: like I would tell you. ;)
Cool 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
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.