Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Is there a way to check for an enemy having "Levitate"?

Hey guys is there some sort of property that the enemy class has where you can check if an enemy has the "Levitate" check mark in the database checked off? 

My end goal is to modify the Tentaki(sp?) sideview script to have a float animation for all enemies that have Levitate checked.
 

poccil

Sponsor

Here is an example of a check in Ruby (assuming that "enemyObject" is a variable referring to a Game_Enemy object):

Code:
if enemyObject.enemy.levitate
  # Enemy has levitate
end
 

poccil

Sponsor

The "levitate" flag uses the information from the database, accessible with the "enemy" method of Game_Enemy.  You are right, though, the game system does not access this flag in its default scripts, as far as I am aware.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top