Alice Community  

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

Reply
 
Thread Tools Display Modes
need help with astronaut
Old
hazebo
Guest
 
Status:
Posts: n/a
Exclamation need help with astronaut - 11-21-2010, 01:03 PM

Hi, I am so lost. I need an astronaut to jump, but with the "ask the user for a number" function, then have him jump a specific height and then have him spin around using the same function. I keep trying different functions, but I am totally lost.:
   
Reply With Quote
oh yeah
Old
hazebo
Guest
 
Status:
Posts: n/a
Default oh yeah - 11-21-2010, 01:06 PM

I'm supposed to spin him around using a loop
   
Reply With Quote
Old
labtek9
Senior Member
 
labtek9's Avatar
 
Status: Offline
Posts: 122
Join Date: Aug 2009
Location: Pluto
Default 11-21-2010, 02:48 PM

If I'm correct you want the user to say how high the astronaut is going to jump, yes? if so, you would put astronaut move up (ask user for a number) amount of meters and then adjust speed its not difficult, then to make him spin astronaut spin (ask user for a number) amount of rotations, then make the astronaut come back to the ground asking the user to input the first number used again.


Roar Face! >:O

Circle Buddy!
   
Reply With Quote
Old
labtek9
Senior Member
 
labtek9's Avatar
 
Status: Offline
Posts: 122
Join Date: Aug 2009
Location: Pluto
Default 11-21-2010, 02:49 PM

that would be the easiest way i believe.


Roar Face! >:O

Circle Buddy!
   
Reply With Quote
Hi labtek
Old
hazebo
Guest
 
Status:
Posts: n/a
Smile Hi labtek - 11-21-2010, 03:09 PM

Quote:
Originally Posted by labtek9 View Post
If I'm correct you want the user to say how high the astronaut is going to jump, yes? if so, you would put astronaut move up (ask user for a number) amount of meters and then adjust speed its not difficult, then to make him spin astronaut spin (ask user for a number) amount of rotations, then make the astronaut come back to the ground asking the user to input the first number used again.

Yes, but if the user enters a number any higher than 5 meters, the astronaut flies off the page. Is there an If/Else I need to use? I was asked to create a new variable. The loop is not difficult is trying to figure out how to get the user not to enter anything higher than 5, or make it where if it's higher than 5, perhaps it asks the user for a lower number. uggh

thanks

Hazel
   
Reply With Quote
Old
labtek9
Senior Member
 
labtek9's Avatar
 
Status: Offline
Posts: 122
Join Date: Aug 2009
Location: Pluto
Default 11-21-2010, 07:55 PM

what you could do is make the astronaut a vehicle of the camera so that you can always see him. post the world, i'll have it to you on monday, im going to my house with a computer i have alice on at monday i'll see what I can do, is this for a project, by the way?


Roar Face! >:O

Circle Buddy!
   
Reply With Quote
Yes, it is for a project.
Old
hazebo
Guest
 
Status:
Posts: n/a
Default Yes, it is for a project. - 11-21-2010, 07:57 PM

Quote:
Originally Posted by labtek9 View Post
what you could do is make the astronaut a vehicle of the camera so that you can always see him. post the world, i'll have it to you on monday, im going to my house with a computer i have alice on at monday i'll see what I can do, is this for a project, by the way?

I think I have attached the actual a2w file.


Thanks so much for your help.
Attached Files
File Type: a2w Astronaut.a2w (783.3 KB, 53 views)
   
Reply With Quote
Old
labtek9
Senior Member
 
labtek9's Avatar
 
Status: Offline
Posts: 122
Join Date: Aug 2009
Location: Pluto
Default 11-21-2010, 08:00 PM

I can't think of an if/else statement usable unless you add a variable, which would simplify it, if the user guesses higher than 5 just in stead of making the astronaut jump make him say something like "to high!" or what ever else you can think of and the same for too low, if user enters lower than 1 astronaut shake head as in 'no' that could work to make things work


Roar Face! >:O

Circle Buddy!
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 11-21-2010, 08:02 PM

Quote:
Originally Posted by labtek9 View Post
is this for a project, by the way?
Yeah, it's an assignment. I'd know 'cause I've seen it posted around the forums before.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
and....
Old
hazebo
Guest
 
Status:
Posts: n/a
Default and.... - 11-21-2010, 08:35 PM

Quote:
Originally Posted by debussybunny563 View Post


Yeah, it's an assignment. I'd know 'cause I've seen it posted around the forums before.
your point?
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.