Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Laser Beam
#1
I recently made a Laser Beam Attack for Davis, but everytime it gets hit by Louis or Henry's Blastpushes, it'll be destroyed. How should I do to make it remain undestroyed when get hit by any attack? I even removed its body. Sorry, but I'm a little bit n00bish in DC.
Coding:

<frame> 80 col
pic: 24 state: 3005 wait: 30 next: 81 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>

<frame> 81 col
pic: 25 state: 3005 wait: 1 next: 82 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>

<frame> 82 col
pic: 26 state: 3005 wait: 1 next: 83 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>

<frame> 83 col
pic: 27 state: 3005 wait: 30 next: 84 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 10 y: 12 w: 2990 h: 24 dvx: 7 dvy: -2 fall: 70 vrest: 6 bdefend: 70 injury: 200
itr_end:
<frame_end>

<frame> 84 col
pic: 27 state: 3005 wait: 30 next: 85 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 10 y: 12 w: 2990 h: 24 dvx: 7 dvy: -2 fall: 70 vrest: 6 bdefend: 70 injury: 200
itr_end:
<frame_end>

<frame> 85 col
pic: 27 state: 3005 wait: 30 next: 86 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 10 y: 12 w: 2990 h: 24 dvx: 7 dvy: -2 fall: 70 vrest: 6 bdefend: 70 injury: 200
itr_end:
<frame_end>

<frame> 86 col
pic: 27 state: 3005 wait: 30 next: 87 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 10 y: 12 w: 2990 h: 24 dvx: 7 dvy: -2 fall: 70 vrest: 6 bdefend: 70 injury: 200
itr_end:
<frame_end>

<frame> 87 col
pic: 26 state: 3005 wait: 1 next: 88 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>

<frame> 88 col
pic: 25 state: 3005 wait: 1 next: 89 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>

<frame> 89 col
pic: 24 state: 3005 wait: 1 next: 1000 dvx: 0 dvy: 0 centerx: 54 centery: 24 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
Reply
Thanks given by:
#2
now i am no expert, but state 3005 in each frame means when its gets hit, it will automatically go to frame 10 or something.
So if you dont want it to be destroyed at all, like even when it hits someone, change it to something like state: 15.
you probably should have left the bodies in, but oh wells, im not sure it makes much of a difference

(slap me if i am wrong)
Reply
Thanks given by: IvanYiu247
#3
Thanks!
Reply
Thanks given by:
#4
What is the purpose of the thanks button. And...
Never post such a big code without the [code]-tags!!!!!

@Alectric:
*slap*
State 3005 is the strongest ball and even without shadow. It is only destroyed when it hits or is hit by a state 3005 ball.
Instead use state 3005 in the balls flying frames without a itr but with a opoint and opoint the ball in another frame with itr state 3005.
This means that the laser cant be hit but the opointed laser will hit instead.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: Drahcir
#5
You could just avoid this and make next from frame 30/20/10 to the normal flying frames.Course You also make it look like a normal flying frame.That only good if you want the lazer to be indestructible.
Reply
Thanks given by:
#6
Alectric+Happyhour: Both fails...

The problem is just, that USUALLY EVERY ball can be blocked by Julian's Ball (state 3006) or Blastpushes (state 3005)

As someone else (who? XD) explained, you need to make a T3 (ball) WITHOUT any body or itr's, but spawning "hitzones" (T3's that are invisble, state 3005, do an itr and then disappear again). If this hitzones hit one of the balls noted above, it will get destroyed, too, but the main attack (first T3) wont be affected.
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by: Som1Lse , Drahcir
#7
(09-21-2009, 11:06 AM)Alblaka Wrote:  Alectric+Happyhour: Both fails...
Nope your wrong and I didnt failed.Please dont say I'm wrong if you didnt try it. If t3 with state: 3005 hit another t3 with state: 3005/6 then both of them go to frames 10.You just need to link it back to the flying frames.I know cause I tried that for fun.

State 3005 in flying frames + next from frames 30/20/10 to the flying frames makes your balls indestructible. Now I have got balls of steel LOL(click)

Its only good if he wants his lazer to be indestructible.Even john shield wont destroy it.

Its not too hard to code ball that able to destroy all the other balls in the game.Its just overpower ball.


Click here to see that it does work and I didnt failed
Reply
Thanks given by:
#8
if state 3005 hits a 3006 object then only the 3006 thing goes to frame 10/20/30
also, Alectric didn't fail, state: 15 or 18 or whatever is understroyable...
or do you remember seeing how Firen's explosion got destroyed by julian's ball/henrys wind thing?
Reply
Thanks given by:
#9
oh come on...theres a frame that makes the ball die
just reroute those frames so it dont die -_-
solved
~its been a long time coming~
Reply
Thanks given by: The Lost Global Mod
#10
Well, i have had this probelm before. It had something to do with the ID. Try changing it to 200. Cause, when i tried it on 201, state 3005 balls would disappear.

Also when you show data changing codes, do the code thing.

Put your code in the middle of the code thing
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)