News:

MFG's Character of the Month: September 2026 Voting

Main Menu

code help :)

Started by BrundleFly, September 20, 2007, 03:03:35 AM

Previous topic - Next topic

BrundleFly

ok i want to make a aliens chars for the movie "aliens" i was going to make it like the kfmen char or rox Howard char where they just keep coming out.... could someone tell me what the coding for something like that....if you dont understand please ask me questions and ill try to explain the best i can thanks for your help i would be very great full for what ever advice you can supply  :sugoi: :sugoi: :sugoi: :sugoi: :sugoi: :sugoi:

ZzEzZ

sounds like u want a bunch of aliens 2 keep appearing and hitting the enemy?

u could make the alien a helper (or a projectile, i guess) then give them a hitdef, ect. until they suit ur needs... an just use a repeating trigger so that many appear

edit: added mcode o.0

BrundleFly

ok if i did do that where would i put it ?? sry for a dumb question im just getting the hang of this (char making) ???  ;D ;D ;D im trying at least ?right? and yes i want them to keep appearing or keep coming out  ;D

ZzEzZ

well, u could make this like a normal super... create a state 4 it in your .cns that calls your helpers, then your helpers' state (the aliens)... an dont 4get 2 code the .cmd part of this move also...
4 an intro into move creation check out narutorial#3 (the "how to code a punch" part) in the "tips, tricks, tutorials" section... it should help

BrundleFly

i dont necessary want it to be a move but to automatically come out on there own kind of like rox howard (do you know who and what i mean)??   ??? ???   :sugoi:

ZzEzZ

ok i c wat ur saying (no i dont know hu ur tlkn about, sry :' (   )

if thats the case, it would b better if u put the helper creator under -2 (-2 states are check'd once per tick even if ur in a custom state... -3 is the same, but not check'd if your in a custom state)

so read up on helpers in the docs, and put a "type = helper" sctrl under the -2 statedef. then create your helpers' actual state as normal (with a positive statedef #)

edit: o but make sure u only make helpers during that actual fighting, lol or it might look a lil weird with ur aliens hitting ur enemy during their intro or death or w/e... roundstate is what ull need

BrundleFly

ok the rox howard char they just keep coming from off the screen and attack you and when you kill one he comes back lol i got the clones to appear but they dont do anything but stand there and take damage lol 


thanks for your help so far please excuse my dumb question im new to the coding aspect  :sugoi: :sugoi: :sugoi:

Cyanide

Urgh, you mangled english there.

Ok you essentially need about 4 states.

Your character is going to be invisible. In the stand state remove control and just have him turn randomly. posset him to the center of the screen.

Make him create helpers randomly at a positive 160,0 position. Also set a variable for how many helpers you want to be allowed out.

Roundstate = 2 is one of the triggers you need. The helpers will turn at time = 0 if p2dist X< 0 then you just make them run at the opponent. Give them a hitoverride which puts them in a death state. This should use parentvaradd to lower the parents variable. Consider the var as the parent's life. When it's <= 0 have the parent die.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

ZzEzZ

#8
make the helpers b created off screen with the pos part of the helper(u can do 0,200 if u want it over the top of the screen... or u can put it off the side of the screen)... also add this 2 the trigger of that helper (numhelper(xx) = 0) where xx is the helper id...
and in the alien's actual state, put a velset so that it moves towards the enemy, and a hitdef of course
also, put a hitoverride in that state so that, when your alien gets hit u can send it to a "death state" where u give it a death anim and a destroyself

eh his english iz ok... no1's perfect... dare i say, even urs could use work? o.0  ;D ;P

edit: o Cy, do u know hu hes tlkn bout? i nvr even heard of this guy, lol

BrundleFly

#9
ok suppose i want 6 on the screen at one time do i need to have code for each one?

Quote from: ZzEzZ on September 20, 2007, 09:47:34 AM
make the helpers b created off screen with the pos part of the helper(u can do 0,200 if u want it over the top of the screen... or u can put it off the side of the screen)... also add this 2 the trigger of that helper (numhelper(xx) = 0) where xx is the helper id...
and in the alien's actual state, put a velset so that it moves towards the enemy, and a hitdef of course
also, put a hitoverride in that state so that, when your alien gets hit u can send it to a "death state" where u give it a death anim and a destroyself

eh his english iz ok... no1's perfect... dare i say, even urs could use work? o.0  ;D ;P

edit: o Cy, do u know hu hes tlkn bout? i nvr even heard of this guy, lol


so ill need a state for each of these  ??? ???


i am getting it the more i read im just trying to clear this up so i understand it  :sugoi: :sugoi: :sugoi:

thanks for your help so far :sugoi: :sugoi: :sugoi: :sugoi:

Cyanide

Quoteedit: o Cy, do u know hu hes tlkn bout? i nvr even heard of this guy, lol
More effort on the vowels please. This isn't a fucking cellphone.

Don't have to know. He's making a bonus game. Things run in from either side of the screen and attack you. You kill them. Thats all.

Here are your states sir

Stand

Helper run

Helper attack

Helper die.

Thats all you really need, Technically run and attack can be the same state if you time it right but splitting them up is probably easier.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

BrundleFly

ok thanks for your help again Cyanide  :sugoi: and yeah i want it like a mini game

so it would look like this


[State ???]<---- what number should i use or dont matter?
type = Helper
trigger1 = RoundState = 2
trigger1 = NumHelper(1005) = 0
trigger1 = life*5 <= p2life
trigger1 = life < p2life
name = "Helper5"
id = 1005
pos = 40,-270
postype = left
stateno = 9999


is it like this ?? sry for all the questions lol trying to figure it out but i am reading the doc that are posted to  :sugoi: :sugoi: :sugoi:

and here is the rox howard char i am talkin about so you have a better idea what i am talkin about if you want to see him in action for your self  :sugoi: :sugoi: :sugoi: :sugoi: :sugoi:

http://www.mediafire.com/?7efbexyn2ti


hope it helps  :sugoi: :sugoi: :sugoi:

ZzEzZ

#12
depends which way ur doing this... 4 positive states, or 1 - and 2 positive states... if positive then it doesnt matter, if negative... then -2
and if u want 6 on screen then ur trigger would b numhelper(1005) < 6

Quote from: Cyanide on September 20, 2007, 11:34:53 PM
More effort on the vowels please. This isn't a fucking cellphone.
n ty, y add letters when they arent needed... u understood wat i said right? ok then...

edit: o since u have trigger1 = life*5 <= p2life u dont need trigger1 = life < p2life

Cyanide

m sry prps 1 shld stp usng s mny vwls 2 f i mks mre sns 2 ppl

There will come a time when you type total gibberish, noone will understand it and a flame war will spark. You have time to type your post. There is no character limit. Use full words. I'm less bothered about punctuation but making what you write, especially when you're trying to HELP someone, understandable, is important.

English isn't everone's first language.

trigger1 = NumHelper(1005) = 0

Consider using a time mod trigger time%# = 0 instead of numhelper. Not much of a challenge when you've only got 1 showing up at once. Unless you plan to have the helper fight as AI. You'd be better off spawning them quickly, say 1 per 30 ticks.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

ZzEzZ

i guess it always takes an exaggerated example of sumthing 2 prove a point, eh Cy? but i do read over wat i post (most of the time) 2 make sure it iz legible, even for those hu arent native english speakers... but ill try using complete words more often... cuz i do c ur point, i guess

he says he wants 6 helpers on screen at a time ... so if he did do the time mod thing, he'd still need a restrictor

Cyanide

Yep it does. And thank you for at least saying you'll try.

He should probably change his trigger to < 6 then rather than = 0.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.