Alice Community  

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

Reply
 
Thread Tools Display Modes
programming lives (multiple trails)
Old
wolfbluejosh
Guest
 
Status:
Posts: n/a
Default programming lives (multiple trails) - 07-07-2009, 09:42 AM

Hey everyone,

I need help programming lives. The scene is a snowball machine (or person) is throwing a snowball at you and the point of it is to dodge the snowballs. If you were hit by it you die haha.
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 07-07-2009, 10:20 AM

you could do a few things but most involve a if/else command in which, if snowball is within 1 meter of player gameover. Or for several health points

If sphere(snowball) is within 1 meter of [player]
(death/lose animation)
else
do nothing

If you want health:
make health a varible(number)also you would want to display health as a 3d text vechiled to the camera.

{While:
{3d text set to Health: joined with (varible)as a string}
{If sphere(snowball) is within 1 meter of [player]
decrement health by 1
else
do nothing}
{If Health = 0
(death/lose animation)
else
do nothing}
}
It needs more but this is the basic.
Attached Files
File Type: a2w health..a2w (667.8 KB, 6 views)

Last edited by Veryuhbull; 07-07-2009 at 10:47 AM.
   
Reply With Quote
Old
wolfbluejosh
Guest
 
Status:
Posts: n/a
Default 07-08-2009, 09:29 AM

Alright thanks. I took a look at the file you posted. i am guessing you had this problem as well
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 07-08-2009, 10:12 AM

Any time.
   
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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.