ID:171486
Sep 16 2004, 2:10 pm
|
|
I hav'nt been posting or on byond trying to add a grenade.I tried searching alot of f1 things and found alot helpful but nothing exactly like i wanted.I want the mob to be able to throw the grenade the way the mob is facing,then if it hits a turf/obj(blah blah i got this) it will expolde there.The thing is i want it to stop 5 blocks away form the mob if it doesnt hit a obj/turf....can any1 help?
|
Sep 16 2004, 2:12 pm
|
|
if it hits somthing change a variable that checks if it hit something. Now do something like this
move direction by 1 sleep(2) if hit, return move direction by 1 sleep(2) if hit, return etc. Do that until certain length has reached. |
In response to Metroid
|
|
Mine's better.
|
In response to Garthor
|
|
Ya but i got those down.Umm gonna go play halo online again i'll check back in a few...thnx
|
In response to Garthor
|
|
Garthor wrote:
> var/Q = 0 Maybe walk would be better, to control the speed instead of step? Just a thought... |
In response to Jik
|
|
That would not work whatsoever. If you want to control the speed, add a sleep(whatever) inside the loop.
|
In response to Garthor
|
|
This helps and everything works just fine EXEPT....The grenade only does south even if i'm facing north.
|
In response to CodingSkillz2
|
|
If you understood the code, you'd know why.
|
In response to Garthor
|
|
True..But we all know i understand *with luck* half of it.Anbd i would say not even half..I've never seen the && and the ++ till recently..The && i saw stands for and..the ++ i have no idea..Mabe adding somthing?Would make the most sense .....
|
In response to CodingSkillz2
|
|
*Cough Reference* Use it
|
In response to N1ghtW1ng
|
|
Yes...would be te wise choice...
|
In response to CodingSkillz2
|
|
thats intresting i found it hard to work grenades in my halo game..
|
I ask you kindly NOT TO NAME YOUR GAME "Halo"! Or keep the name, and lose the graphic that resembles Master Chief from Halo. I've brought a few people I know into BYOND, who also enjoy Halo. They joined your game, threw up in my bathroom, and guess who mopped it? You're giving the beginner player that this is indeed Halo for PC. I wonder what Bungie would say if they saw what BYOND is *allowing*. The time will come when the lawyers of a company stumbles upon BYOND, which will cause horror. Rid the problem now (Game names, content), and you're free.
|
In response to CodingSkillz2
|
|
CodingSkillz2 wrote:
True..But we all know i understand *with luck* half of it.Anbd i would say not even half..I've never seen the && and the ++ till recently..The && i saw stands for and..the ++ i have no idea..Mabe adding somthing?Would make the most sense ..... CodingSkillz, I really think you should read some tutorials before venturing further into making a game. I'm glad you want to try, and the tutorials are there to help you with that. Check out the ZBT tutorials, http://zilal.byond.com/tutorials/zbt.html and then the Tutorials link on the left here. Try to really understand the tutorial yourself without asking too many questions here. Even though it will take a bit longer time, I can assure you that it helps much more in the end. Good luck! /Gazoot |
In response to Crashed
|
|
Ya ewll out of all the 100's of dbz games out there and not one case i think i'll take my luck and leave it this way.Thanks anyway.
|
In response to Garthor
|
|
Garthor wrote:
That would not work whatsoever. If you want to control the speed, add a sleep(whatever) inside the loop. opps... I suck... =( |
In response to Jik
|
|
Think of it like this...Compared to me you don't suck you never suck unless you are really sad...like me..
|