Jump to content

Photo

... Refelction Script?


  • Please log in to reply
13 replies to this topic

#1 Aslion

Aslion

    End Fascism

  • Members
  • Real Name:Ryan
  • Location:Plug One's spectacles

Posted 01 December 2007 - 02:19 PM

Would it be possible to make an FCC script, where a transparent upside down copy of Link follows him around underneath him?

Because my brother told me about these, when I was thinking of a unique dungeon idea, and Exate's comment was the best idea ever.

So, I'm requesting this.

Edited by gray0x, 01 December 2007 - 02:22 PM.


#2 Joe123

Joe123

    Retired

  • Members

Posted 01 December 2007 - 07:02 PM

hrm

I'm willing to do this (and I had started) but I need to know what animation style you're using before I can finish it. It's a pretty simple script, but it does rely on that information.

#3 Aslion

Aslion

    End Fascism

  • Members
  • Real Name:Ryan
  • Location:Plug One's spectacles

Posted 01 December 2007 - 07:07 PM

Well, I'd assume it's BS animation, I plan on using the new DoR when it's released.

#4 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 01 December 2007 - 10:55 PM

Well that's easy. You could add reflections for enemies just as easily too.

Hint* The enemies aren't screen enemies but are called from ffc's to match the enmy type. Once isValidNPC is false the shadows disapears.


As far as matching link step for step Joe123, I think thats impossible, or at the least a small migrane.

#5 Aslion

Aslion

    End Fascism

  • Members
  • Real Name:Ryan
  • Location:Plug One's spectacles

Posted 01 December 2007 - 11:23 PM

Oh yes, the enemies. That's important...

I do hope this is possible, I want a kick-ass level 1.

#6 Joe123

Joe123

    Retired

  • Members

Posted 02 December 2007 - 05:08 AM

Why oh why is that impossible Gleeok?
Just need a few if's and drawtile animations. If someone could work out the animation speed in frames of BS Link's animation, that would help greatly.

#7 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 02 December 2007 - 07:49 AM

Why oh why indeed.

Have you noticed what happens when you slightly tap the D-button in different directions, or attack with an item or sword? So it may be possible with testing, but look at what just happened, something simple just became a headache, an else if, variable heavy headache.

Why stop there though, lets make a shadow for every conceivable item class and misc animation! Ahahahahahhahahaaa!!!!!!!! !!!!!! !!

Edited by Gleeok, 02 December 2007 - 07:50 AM.


#8 Joe123

Joe123

    Retired

  • Members

Posted 02 December 2007 - 08:30 AM

Oh yeah, slashing and different movements and that. Oh dear. Well his reflection is just going to have to stand still =P

#9 Aslion

Aslion

    End Fascism

  • Members
  • Real Name:Ryan
  • Location:Plug One's spectacles

Posted 02 December 2007 - 10:58 AM

If the enemies are possible, then I could make up some crap about how material objects aren't reflected.

... but then Link would have to be naked in his reflection >.>

Yeah, this seems impossible.

#10 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 03 December 2007 - 03:05 AM

QUOTE(gray0x @ Dec 2 2007, 09:58 AM) View Post

If the enemies are possible, then I could make up some crap about how material objects aren't reflected.

... but then Link would have to be naked in his reflection >.>

Yeah, this seems impossible.



What, no, it's not that. All you need is 4 combos of Link(unless joe123 is using drawtile...), up,down.left,right, in that order. Same for enemies. Enemies work the same as Link does. Dir 0,1,2,3. The ffc at the enemies X, Y+16 simply creates an enemy, stays underneath it while valid, and reads NPC->Dir to tell it what combo to use. Simple, no? You can combo those now and save time later if you want.


And Joe123, Tell me how to clear a Screen->Message(m), Clearsprites don't work I believe. I need to have messages appear quickly then vanish in combat. For example: Fuzzball call's for help.....Help arrives!
We can't have that message on screen the whole time...

#11 Joe123

Joe123

    Retired

  • Members

Posted 03 December 2007 - 11:32 AM

Easy answer Gleeok...
You can't.
Not that I'm aware of. You can use the messages dissapear rule?
I tried with a manual string and killing the guy with screen->clearsprites but that wouldn't work either.
You might be able to do something with linking to a blank string, or linking to a string that's at the bottom of the screen?

Otherwise, drawing on combos.

#12 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 10 December 2007 - 10:01 PM

So....were you working on these still....or no?

#13 Joe123

Joe123

    Retired

  • Members

Posted 11 December 2007 - 02:56 AM

No.
I might do, sometime, I'm not now if you want to.

#14 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 12 December 2007 - 01:33 AM

CODE

ffc script link_shadow{
void run(){
int up = this->Data;
int down=this->Data+1;
int left=this->Data+2;
int right=this->Data+3;
while(true){
this->X=Link->X;this->Y=Link->Y+16;
if(Link->Dir == 0){this->Data = up;}
if(Link->Dir == 1){this->Data = down;}
if(Link->Dir == 2){this->Data = left;}
if(Link->Dir == 3){this->Data = right;}
Waitframe();
}
}
}


CODE

ffc script enemy_shadow{
void run(int id){
int up = this->Data;
int down=this->Data+1;
int left=this->Data+2;
int right=this->Data+3;
npc n = Screen->CreateNPC(id);
n->X=this->X;n->Y=this->Y-16;
while(true){
this->X=n->X;this->Y=n->Y+16;
if(n->Dir == 0){this->Data = up;}
if(n->Dir == 1){this->Data = down;}
if(n->Dir == 2){this->Data = left;}
if(n->Dir == 3){this->Data = right;}
if(!(n->isValid())){this->Data=0;this->X= -16;Quit();}
Waitframe();
}
}
}


enemy script

D0 - the enemy id you want to create. will spawn just above the ffc's coordinates. set ffc to transparent.

and...

CODE

import "std.zh"

Edited by Gleeok, 12 December 2007 - 01:34 AM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users