Hey, we have forums!

Author Topic: Entities or nodes that 'fall' when Najia clings to them  (Read 6741 times)

0 Members and 1 Guest are viewing this topic.

Offline Kasofa

  • Bit
  • ***
  • Posts: 16
  • A whale in a manger...
    • View Profile
Entities or nodes that 'fall' when Najia clings to them
« on: December 08, 2009, 07:04:47 pm »
Is it doable? I would like to figure out Lua, and had this idea. I can't quite figure out how to accomplish this.
Sorry if this post isn't that clear, I can't figure out what I'm trying to say.

-K
(Har har puns.)

Offline Alec

  • Administrator
  • Dream Bit
  • **********
  • Posts: 2211
    • View Profile
Re: Entities or nodes that 'fall' when Najia clings to them
« Reply #1 on: December 08, 2009, 07:19:19 pm »
I forget the specifics, but it should be possible. (there are objects that Naija can cling to in the game that move... for instance the moving ice chunks in the frozen veil)

Offline Edwards

  • Bit Bit
  • ****
  • Posts: 93
    • View Profile
Re: Entities or nodes that 'fall' when Najia clings to them
« Reply #2 on: December 08, 2009, 07:49:30 pm »
Check out the Grouper script- I know it has different in-game effects when you sing depending on whether you're clinging to it or not, though I don't know how this was implemented.

- Edwards
You should only need one canister shell to bag your deer using your howitzer, but assemble more than one if  you have a mind to.1

Offline Kasofa

  • Bit
  • ***
  • Posts: 16
  • A whale in a manger...
    • View Profile
Re: Entities or nodes that 'fall' when Najia clings to them
« Reply #3 on: December 08, 2009, 08:25:20 pm »
you mean this?

Code: [Select]
function songNote(me, note)
bone_alpha(eyeglow, 0.5, 1)
bone_color(eyeglow, getNoteColor(note))
end

function songNoteDone(me, note, timer)
if timer > 1 then
entity_setState(me, STATE_OPEN, 2)
end
bone_alpha(eyeglow, 0, 1)
end
I'm thinking something like this.
(This might not be the correct code, because I do not know the tags for this.)
Code: [Select]
avatar_isOnWall(me)
   vibrate, then
      entity_addVel(me, 0, -10)
         entity fade
end
[/code

-K
« Last Edit: December 08, 2009, 09:01:21 pm by Kasofa »
(Har har puns.)