PlayStation3IXP Not recently active

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Replies
  • PlayStation3IXP
    @ps3ixp

    You can make a bird with custom ability by using the example here.

    if birdSpecialty == “EXAMPLE” then
    local force = boostForce * physicsScale * flyingBird.mass
    local x, y = vNormalize(flyingBird.xVel, flyingBird.yVel)
    applyImpulse( flyingBird.name,
    5 * force,
    -y * force,
    flyingBird.x,
    flyingBird.y )
    addParticles(flyingBird.name, blockTable.blocks[flyingBird.definition].particles, 13)
    _G.res.playAudio(getAudioName(blockTable.blocks[flyingBird.definition].specialSound), 1, false)
    objects.world[flyingBird.name].sprite = “BIRD_YELLOW_SPECIAL”
    setSprite(flyingBird.name, objects.world[flyingBird.name].sprite)
    local lx, ly = physicsToWorldTransform(flyingBird.x, flyingBird.y)
    end

Viewing 1 replies (of 1 total)