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...
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...
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...
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 =...
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...
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...
___________________________________________
############################################################################################
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] -...
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...
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?.