Alice Community  

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

Reply
 
Thread Tools Display Modes
Access a Method in a super class from a sub class
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Question Access a Method in a super class from a sub class - 09-23-2015, 09:49 AM

If I want to have a method that is part of an object (i.e. Alien) access a method that is part of a super class (i.e. scene), how can I do that?

Edit: This is for Alice 3.25

Thanks,
Bill

Last edited by wbarnum; 09-23-2015 at 09:56 AM.
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 09-23-2015, 10:38 AM

This might work
Attached Files
File Type: a3p MrMoke01.a3p (28.4 KB, 3 views)

Last edited by MrMoke; 09-23-2015 at 04:30 PM.
   
Reply With Quote
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Default 09-24-2015, 09:51 AM

Quote:
Originally Posted by MrMoke View Post
This might work
Worked like a charm. Thanks.

To anyone else who might be reading this, I needed to add a parameter to my function or method that would allow me to access Scene functions or Methods.

Last edited by wbarnum; 09-24-2015 at 11:11 AM.
   
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.