i need to do something in a certain frame of an object, the code i wrote is:
if (image_index == 25)
image_speed = 0;
it's wrote in the step event and it's very simple, but when the animation reach that frame the animation speed doesen't sets to 0, it's like gamemaker
Encountering a strange issue in regards to image_index. problem is reproduceable.
create new project
create sprite and resize to 96x128. (resizing may not be necessary)
create 29 frames and draw the numbers 0 through 28 in them. (drawing the numbers is not necessary, but helpful to see results)...
I am making a tower defense game, and you are protecting a house. I have different frames in the house sprite for different levels of being broken by the enemy. I would like it to stay on the first frame, but if something happens, such as the health going down by 25, it will go to the next...
I don´t quite understand if I can have different "animation groups" for a same object depending on the condition of that object, I mean, what is the object doing.
For example: I have a top-down shark object which will start swimming underwater. When is near the player, say 100px away, it...
for being quick:
I have an enemy in my game-project, with a moving core within its body.
The alien-object is moving on its own (the body cannot be injured. But inside of it,
the sensitive core is moving, too. And that core is up to being hit by bullets.
Can anybody tell me, how the...
Is there a way to select frames from an animation and only play those? For example, I have 3 animations in 1 sprite, 8 different frames (cause the free game maker version only allows 20 sprites) and I only want to play frame 3 to 6.
Thanks in advance!
I wanted to make armor for the player (boots and breastplate) but when I added this simple code to draw the sprite on the player it draws pretty ugly and most of the time it has other animation than the player has. Sprite for the boots has exactly the same amount of frames as player and each...
Hi everybody. I would like to figure out the best way to manage different animations using just one sprite.
For example in my player's sprite I've got:
- frames 1-3 idle
- frames 4-7 run
- frames 8-12 jump ans so on..
What I want to do is loop multiple subimages on event need.
Thank you, I'm...
So, I have this code for the weapon object of a tank on the server side:
var projectile_spawned = instance_create(tipx, tipy, obj_projectile);
image_angle = other.image_angle;
damage = other.damage;
Bit of a weird one. I am trying to find the game speed so that I can determine the length of a second. I used
global.oneSecond = game_get_speed(gamespeed_fps)
to do so. When I have that in place my game foes from this
That means the sprite has changed (how?!) and...
Hi, this is my first post, I hope I have not made mistakes with the regulation of the forum.
I made an animation that makes the character start to walk (from a stand position) and walk. I want that animation start from the frame 0 for the first animation, than loop from the frame n. 18. (0-18...
Is it possible to turn on and off pixel color interpolation for a single object, or many but not all objects in the same frame? Things in the process of scaling or rotating look better with it on, but more blurry so that they look worse if they're not currently changing values in either of these...
Do you experience slowdowns in your games? Do you run out of solutions to optimize your framerate? Lerner FPS gives you some air, by providing a whopping 50% performance increase!
With one call to the lfps_step() function in the Step event, your game will automatically skip frames when the FPS...
Hi, i'm having this issue without a clue on how to solve it.
In my character selection room y have an object which will set the frame (sub-image) of the player and CPU, and also the preview.
for this In my object (arrows) I'm using "image_index -= 1 (for the back) and image_index += 1 (for the...
I decided to make a small adjustment to my main character sprite but editing every frame one by one seem daunting and probably inaccurate so is there a way to edit multiple (or all) frames at once?
I'm a complete noob at this so I apologize if its a dumb question :)
I was trying to make character sprites with lots of different movements, combos, finishers and non-combat adventure animations like sitting, eating, crafting, etc. So i made a huge sprite sheet for all combat moves, and it took 310+ frames to make it. I import sprite into...
I am wanting to find a way to shoot with 'Mouse Left Button action' rather than with the 'Left Button Pressed' action, as I'd rather not have to click a bunch of times.
With 'Mouse Left Button action' it seems that it fires each frame. I would like to fire say.. every 3 frames instead...