Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 11-05-2011, 03:05 PM

there is a better way. when the weapon is triggered, play the following code.

if zombie distance to the left of weapon < [x]
do
if zombie distance to the right of weapon < [x]
do
if zombie distance above weapon < [x]
do
if zombie distance below weapon < [x]
do
zombie set showing false

X is the threshold. insert numbers to suit.


:D
   
Reply With Quote
Old
Powerhouse64
Senior Member
 
Powerhouse64's Avatar
 
Status: Offline
Posts: 54
Join Date: Nov 2011
Location: In ur base, movin ur stuffs
Default 11-05-2011, 03:11 PM

Quote:
Originally Posted by deathsniper127 View Post
THANK YOU SO MUCH!!!! I DID THIS AND IT WORKS !!!!

also centuri0n thanks this works but can you make multiple bullets(spheres) shoot?
Yay! Glad I could help!

For multiple bullets, create only about 5-6 maximum in the barrel (depending on how fast you want the gun to wait between bullets and how fast the bullets move) then WHILE (not when) the user clicks run a method that goes something like this:
Loop infinity times(
Do in order(
bullet 1 move to (starting position in gun)
Move bullet 1 forward (away from the gun) X distance in X seconds
wait a very tiny amount of time
bullet 2 move to (starting position in gun)
Move bullet 2 forward X distance in X seconds
wait a very tiny amount of time

do the same for bullets 3-5 and you should have a working automatic gun that can have multiple bullets shooting on screen at a time!

If the first bullet does not disappear off screen by the time the last bullet fires, add extra bullets (with the same functions) to taste until the first bullet is no longer visible, then have the function loop.

Once again, I hope this helps!


Hogwarts: Where everything is made up, and the points don't matter

Last edited by Powerhouse64; 11-05-2011 at 03:18 PM.
   
Reply With Quote
Test My FPS world plz
Old
deathsniper127
Member
 
Status: Offline
Posts: 38
Join Date: Oct 2011
Cool Test My FPS world plz - 11-05-2011, 06:33 PM

This is the world plz tell me if its good or not
Attached Files
File Type: a2w FPS!!!!.a2w (15.87 MB, 10 views)
   
Reply With Quote
World Reply
Old
deathsniper127
Member
 
Status: Offline
Posts: 38
Join Date: Oct 2011
Default World Reply - 11-05-2011, 06:37 PM

Can you guys also i you want edit some of the world and repost it so i can maybe get better at this. Thanks
   
Reply With Quote
Old
Powerhouse64
Senior Member
 
Powerhouse64's Avatar
 
Status: Offline
Posts: 54
Join Date: Nov 2011
Location: In ur base, movin ur stuffs
Default 11-05-2011, 09:02 PM

Quote:
Originally Posted by deathsniper127 View Post
Can you guys also i you want edit some of the world and repost it so i can maybe get better at this. Thanks
Your grammar needs some work XD
And you should really go about doing this on your own, the whole point is that you need to learn how to do this stuff yourself. Asking the forums to make the world better for you isn't fair to you. You need to learn this yourself, find what works and what doesn't, post it, and someone will let you know what they think, but asking someone to do it for you isn't the way to go. You make your own edits, then ask for suggestions and implement them yourself. Independence is key!


Hogwarts: Where everything is made up, and the points don't matter
   
Reply With Quote
Powerhouse
Old
deathsniper127
Member
 
Status: Offline
Posts: 38
Join Date: Oct 2011
Angry Powerhouse - 11-06-2011, 06:11 AM

I'm sorry about my grammar earlier. I was trying to type fast because I was tired and I wanted to go to sleep but I also wanted to finish this. Thanks for all your guy's help, I really appreciate it! I will try to create this world on my own but thanks for the shooting help!!!
   
Reply With Quote
Pretty Cool
Old
Centuri0n
Member
 
Centuri0n's Avatar
 
Status: Offline
Posts: 44
Join Date: Oct 2011
Location: In a box with free wifi
Thumbs up Pretty Cool - 11-06-2011, 09:57 AM

Quote:
Originally Posted by deathsniper127 View Post
This is the world plz tell me if its good or not
Cool, pretty simple right now, but i like what you did with the red sphere.
are you going to add hit points?


Current Project: NEW ERA
Approx. Completion: 15%
Starting date: 7/12/2012
ETA: 8/3/2012

http://sylentknightgamedesign.weebly.com/

Last edited by Centuri0n; 11-06-2011 at 05:34 PM.
   
Reply With Quote
Centuri0n reply
Old
deathsniper127
Member
 
Status: Offline
Posts: 38
Join Date: Oct 2011
Default Centuri0n reply - 11-06-2011, 07:12 PM

Hey i don't know how to add hit points so I would if i could but I can't
   
Reply With Quote
Old
Powerhouse64
Senior Member
 
Powerhouse64's Avatar
 
Status: Offline
Posts: 54
Join Date: Nov 2011
Location: In ur base, movin ur stuffs
Default 11-06-2011, 07:29 PM

Quote:
Originally Posted by deathsniper127 View Post
Hey i don't know how to add hit points so I would if i could but I can't
... so you shant?

(I would if I could, but I can't, so I shant)


Hogwarts: Where everything is made up, and the points don't matter
   
Reply With Quote
Old
Powerhouse64
Senior Member
 
Powerhouse64's Avatar
 
Status: Offline
Posts: 54
Join Date: Nov 2011
Location: In ur base, movin ur stuffs
Default 11-07-2011, 07:43 AM

Quote:
Originally Posted by deathsniper127 View Post
Hey i don't know how to add hit points so I would if i could but I can't
Here's a thread that actually explains 4 ways to do this. You can modify each of those programs (as long as you give the original creator credit) to fit your damage detector. Whatever signal you have for the program to detect that damage has been done to the player, you can have as the trigger to run one of those health counters!

http://alice.org/community/showthrea...s+count+health


Hogwarts: Where everything is made up, and the points don't matter
   
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.