subimage

  1. J

    [SOLVED] Sprite Health Bar Alternative - Max Subimage

    I'm trying to draw a sprite in replacement of a health bar, this is because I want the back color of the health bar to be semi-transparent and none of the c_colors offer this. I'm drawing the healthbar for the player object from a controller object, so the code looks like this...
  2. F

    Objects are created, but for some of them sprites are not visible.

    I have an object named oSpawner which creates objects named oAlternativeHolder for a Candy Crush look alike game but with numbers written in the "candy". I've been testing my game with subimages made in the GMS2 Editor for my sAlternativeHolder and never bumped into a problem until now that I...
  3. S

    GameMaker (SOLVED) clamp sprite animation to certain subimage range?

    hello I am trying to create a menu system that uses 1 sprite for changing menus and being selected my sprite layout is like this.. -disabled -enabling frame 1 -enabling frame 2 -enabling frame 3 -ready -selecting frame 1 -selecting frame 2 -selected which is a total of 8 frames per sprite...
  4. B

    Chain of Sprites in an Object

    The catapult has a create event which makes the loading animation play ( sprite_index = spr_catapult_load; image_index = 0;, image_speed = 0.25;) Thats it. In the step event, it goes like : if sprite_index = spr_catapult_load { if image_index = 15 (which is the last subimage) {sprite_index =...
  5. Checking sub image of sprite [SOLVED]

    I'm wondering if there is a way to check the sub image of a sprite, from one object, upon the collision of another? If so could some please help me figure it out. Basically when my player collides with an obj, I need to check the sub image before it will or will not add to a variable. It would...
  6. P

    Change sub-image question

    Is there a way to change a sprite but set its subimage where the current subimage is ?
  7. T

    Legacy GM [solved]Draw_sprite starting subimg?

    Hello guys, right now, I"m in a little trouble. Okay, so I have this controller object that draws an effect if state == something. The drawing and mechanics work as smoothly as can be, but sometimes the objects draws the effect, but the starting sub image isn't 0. I have some alarms to stop the...
  8. R

    I don't understand this error out of range?

    ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Draw Event for object obj_input_controller: Push :: Execution Error - Variable Index [1,769] out of range [1,-1] -...
  9. Z

    Button not drawing correctly

    Hi! In my game (in GM 6.1) I have a clickable button which should look as if it's pressed down while you're clicking it. The button itseld is an object and it has two subimages and a variable frame that tells which subimage should be drawn. In the mouse press left event I do this: frame = 1; and...
  10. I

    Referring to subimage?

    So basically, what i want to do is to randomly change the sub image of a certain object when the game starts with one that is between "image0" and "image5". how can i do that?, what type of code would i need?.
Top