YesNoOk
avatar

code help :) (Read 1106 times)

Started by BrundleFly, September 20, 2007, 03:03:35 am
Share this topic:
code help :)
#1  September 20, 2007, 03:03:35 am
  • ****
  • Laugh it up
    • USA
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:
Re: code help :)
#2  September 20, 2007, 03:12:35 am
  • avatar
  • ***
sounds like u want a bunch of aliens 2 keep appearing and hitting the enemy?

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

edit: added mcode o.0
Re: code help :)
#3  September 20, 2007, 03:16:15 am
  • ****
  • Laugh it up
    • USA
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
Re: code help :)
#4  September 20, 2007, 03:32:17 am
  • avatar
  • ***
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
Re: code help :)
#5  September 20, 2007, 03:35:21 am
  • ****
  • Laugh it up
    • USA
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:
Re: code help :)
#6  September 20, 2007, 03:44:56 am
  • avatar
  • ***
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... [mcode]roundstate[/mcode] is what ull need
Re: code help :)
#7  September 20, 2007, 04:03:07 am
  • ****
  • Laugh it up
    • USA
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:
Re: code help :)
#8  September 20, 2007, 04:19:45 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.
Re: code help :)
#9  September 20, 2007, 09:47:34 am
  • avatar
  • ***
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 [mcode](numhelper(xx) = 0)[/mcode] where xx is the helper id...
and in the alien's actual state, put a [mcode]velset[/mcode] so that it moves towards the enemy, and a [mcode]hitdef[/mcode] of course
also, put a [mcode]hitoverride[/mcode] 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 [mcode]destroyself[/mcode]

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
Last Edit: September 20, 2007, 09:53:08 am by ZzEzZ
Re: code help :)
#10  September 20, 2007, 03:30:49 pm
  • ****
  • Laugh it up
    • USA
ok suppose i want 6 on the screen at one time do i need to have code for each one?

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 [mcode](numhelper(xx) = 0)[/mcode] where xx is the helper id...
and in the alien's actual state, put a [mcode]velset[/mcode] so that it moves towards the enemy, and a [mcode]hitdef[/mcode] of course
also, put a [mcode]hitoverride[/mcode] 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 [mcode]destroyself[/mcode]

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:
Last Edit: September 20, 2007, 05:57:47 pm by BrundleFly
Re: code help :)
#11  September 20, 2007, 11:34:53 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
edit: 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.
Re: code help :)
#12  September 21, 2007, 01:13:54 am
  • ****
  • Laugh it up
    • USA
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:
Re: code help :)
#13  September 22, 2007, 01:50:13 am
  • avatar
  • ***
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 [mcode]numhelper(1005) < 6[/mcode]

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 [mcode]trigger1 = life*5 <= p2life[/mcode] u dont need [mcode]trigger1 = life < p2life[/mcode]
Last Edit: September 22, 2007, 01:55:30 am by ZzEzZ
Re: code help :)
#14  September 22, 2007, 04:26:34 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.
Re: code help :)
#15  September 22, 2007, 05:00:34 am
  • avatar
  • ***
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
Re: code help :)
#16  September 22, 2007, 06:03:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.