Alice Community  

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

Reply
 
Thread Tools Display Modes
simulate gravity
Old
fenderstrat0409
Guest
 
Status:
Posts: n/a
Default simulate gravity - 04-04-2010, 11:16 PM

Any way to do that?

I tried this

Loop infinity
if knight is above ground
then
knight move to ground

and I have a "jump action" in there so I can get him above the ground... But he never falls back down... lol anyway I can do this?

EDIT: Had to change "When the world starts" to "while the world is running" Got it fixed now.
Closed

Last edited by fenderstrat0409; 04-05-2010 at 12:03 AM.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-05-2010, 08:03 AM

X made an example of gravity, you can check that out


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-05-2010, 12:14 PM

There are many gravity examples from X and me and some other people you can check out in the works-in-progress forum.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-05-2010, 01:13 PM

I dont need to make games with gravity yet unless im making like the snowboarding game or something


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 04-06-2010, 10:11 AM

My examples are found here:

http://www.alice.org/community/showthread.php?t=2937

and here:

http://www.alice.org/community/showthread.php?t=3042


(')>
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 04-06-2010, 08:12 PM

A very simple gravity would be:

if your object is above the ground

your object move 1 meter down


I'm a web developer/ designer now.
   
Reply With Quote
Old
King Gamer(gorit)
Guest
 
Status:
Posts: n/a
Default 04-06-2010, 08:42 PM

Quote:
Originally Posted by jediaction View Post
I dont need to make games with gravity yet unless im making like the snowboarding game or something
O, yeah that reminds me.
P.S. There is the hints I said I would give about upcoming things with A-TOM Studios.
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.