Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Switching Weapons in Alice
Old
Jones989
Senior Member
 
Jones989's Avatar
 
Status: Offline
Posts: 61
Join Date: Jun 2011
Unhappy Switching Weapons in Alice - 06-14-2011, 10:41 PM

Sorry For all these questions!!!

Ok. I want to make it so I can switch between the Energy Sword and the Sniper Rifle. I know this is probably simple, but I still need to know. Can anyone help?


-Me Goes to School, so maybe not on 24/7 xD-

IMA HARDCORE GINJA!

Post Goal

_X_ 0 Post (Junior Member)

_X_ 10 Post

_X_ 15 Post (Member)

_X_ 50 Post (Senior Member)

__ 100 Post

__ 200 Post

__ 400 Post (YEAH!!!!!)
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-15-2011, 02:26 AM

this isn't to hard to accomplish, you just need to set the postion of you character holding both weapons, and have one of the weapons showing false while the other one is shwoing true, and have the change weapon button change these, i'll make a quick example of how to do this.

EDIT: Okay, so just press 1 or 2 in my example in you'll change weapons, look at the coding I did and you'll figure it out pretty easily
Attached Files
File Type: a2w changing guns example.a2w (405.3 KB, 16 views)


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn

Last edited by sfunk; 06-15-2011 at 02:40 AM.
   
Reply With Quote
Old
reaper1395
Senior Member
 
reaper1395's Avatar
 
Status: Offline
Posts: 53
Join Date: Nov 2010
Default 06-15-2011, 03:35 PM

with that method you'll also have to worry about the invisible guns shooting people


XBL gt: R3APER 359
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-15-2011, 03:42 PM

no you dont, just use an if statement holding if secondary weapons are showing true, allow to shoot/else "do nothing", i'll use that same example to show you what I mean

Here you go, the example to show how the shooting will work
Attached Files
File Type: a2w changing guns example 2.a2w (423.3 KB, 3 views)


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn

Last edited by sfunk; 06-15-2011 at 03:49 PM.
   
Reply With Quote
Old
Jones989
Senior Member
 
Jones989's Avatar
 
Status: Offline
Posts: 61
Join Date: Jun 2011
Default 06-15-2011, 05:58 PM

Thanks Sfunk! This file make everything seem so much easier .


-Me Goes to School, so maybe not on 24/7 xD-

IMA HARDCORE GINJA!

Post Goal

_X_ 0 Post (Junior Member)

_X_ 10 Post

_X_ 15 Post (Member)

_X_ 50 Post (Senior Member)

__ 100 Post

__ 200 Post

__ 400 Post (YEAH!!!!!)
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-15-2011, 10:16 PM

your welcome


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-16-2011, 01:27 PM

I remember years ago I made a weapon changing system. If only I could find the file, I would post it. Don't worry though, my new Halo game will have it.


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
John Smithy
Junior Member
 
Status: Offline
Posts: 5
Join Date: Jun 2011
Default 06-16-2011, 04:32 PM

The others seem to have the right idea, just make sure you set the method up right
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-16-2011, 04:42 PM

changing the weapons is a pretty basic idea, all you need to realize is that all the weapons are already there in place, but are just hidden until the user inputs something into the game to make it appear(example I made you press 1 or 2 to change weapons) it's really about how you want to set up the animation in which it becomes a little more tricky instead of a simple one goes away while the othere appears, just use some common sense with the example I gave you and you should be fine


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-16-2011, 09:26 PM

Animations are not that hard. It involves variabels of 1 and 0. In Halo 2, you will see exactly what I mean


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.