Alice Community  

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

Reply
 
Thread Tools Display Modes
Help on Flight SImulator
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default Help on Flight SImulator - 12-05-2009, 09:35 AM

I am making a flying game right now and am trying to make a homing missile system. The problem is I can't seem to make a method with the object under cursor. I embedded comments into it to guide you. Thanks!

Edit: The real Flight simulator is below.

Last edited by dubastot; 12-05-2009 at 07:59 PM.
   
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 12-05-2009, 11:28 AM

Unfortunately, there really isn't a way for Alice to detect when a mouse has hovered over an object. I was considering making a sort of complex system which used the cursor's distance from the top and left edges and compared them against an imaginary line from the camera to the object, but I'm not entirely sure how to do so.


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

Someone posted a world with the same method I want to have in mine. Do you think you could clone their method.

For some reason I can't post it so here is its name: The SIms 2 Beta
   
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 12-05-2009, 04:03 PM

Which part did you want? There isn't a mouse hovering method in there.


(')>
   
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 12-05-2009, 11:49 PM

I tried downloading that world, it won't open properly. Any chance you could re-upload it?


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

Sorry once again that was a bad world, here is a good one:
Attached Files
File Type: a2w Fligher backed up on Dec 5 2009 at 10h2m32s AM.a2w (661.3 KB, 17 views)
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 12-08-2009, 06:22 PM

x249iii can you look at this and see what is wrong when I try to make the object under mouse thing.
   
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 12-08-2009, 06:25 PM

On it.


(')>
   
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 12-08-2009, 06:45 PM

Got it.
Attached Files
File Type: a2w FlyerFixed.a2w (624.4 KB, 8 views)


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

Thank you!
   
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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.