Alice Community  

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

Reply
 
Thread Tools Display Modes
Trying to make space invaders game
Old
carson22792
Junior Member
 
Status: Offline
Posts: 1
Join Date: Nov 2011
Default Trying to make space invaders game - 12-12-2011, 10:39 AM

is there any way to make it so that if the laser beam collides with the spaceship at any point during the program, it will "set spaceShip is showing to False"

also what is a good way to set this up with like methods and classes and stuff? i am not good at alice, just trying to cram in this project for school and mine is messy
   
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 12-12-2011, 11:40 AM

Quote:
Originally Posted by carson22792 View Post
is there any way to make it so that if the laser beam collides with the spaceship at any point during the program, it will "set spaceShip is showing to False"

also what is a good way to set this up with like methods and classes and stuff? i am not good at alice, just trying to cram in this project for school and mine is messy
for the laser detection, yes, there is a way.

1st. Create new method
2nd. Put an if else statement in the method(if/else statements are found at the bottom of the page).
3rd. Say "if laser is within '2' meters of 'spaceship'" "then spaceship is showing "false". (just drag the is showing tool from the spaceships properties to the if/else statement)

hope this helps


<Insert_Signature_Here>
   
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.