Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • solarus solarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 222
    • Issues 222
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Solarus Games
  • solarussolarus
  • Issues
  • #151

Closed
Open
Created Apr 28, 2013 by Christopho@christophoOwner

Error not really explicit

Created by: Renkineko

I get an error : No animation 'attack' in this animation set

It's not really explicit, I got it with a comparison of a sprite name during the enemy dying (I suppose it's that...).

I had a condition like that : local animation_name = self:get_sprite():get_animation() if animation_name == "attack" and self:get_distance(hero) <= 160 then ... end

When I killed the enemy, the game crashed and the error was the one quoted. To fix the bug, I just replaced the condition by : if animation_name == "walking" or animation_name == "stopped" and self:get_distance(hero) <= 160 then

Don't know why "==" are good and "~=" are not good during hurt/die cycle of the enemy, but I didn't found the error very explicit ^^ Beside, I was creating a new enemy so I knew the problem was from it, no very time lost... But in a bigger release, it could be useful to get more informations (what animation set at least).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking