Bit Blot Forum

Aquaria => Modding => Topic started by: Kasofa on December 08, 2009, 07:04:47 pm

Title: Entities or nodes that 'fall' when Najia clings to them
Post by: Kasofa 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
Title: Re: Entities or nodes that 'fall' when Najia clings to them
Post by: Alec 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)
Title: Re: Entities or nodes that 'fall' when Najia clings to them
Post by: Edwards 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
Title: Re: Entities or nodes that 'fall' when Najia clings to them
Post by: Kasofa 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