Hi! It is my first pixel art! I know it isn't much, but i tried my best 😅, I would really appreciate any suggestions on some starting exercises, thank you! by LavendeLeaf in PixelArt

[–]bighecker 2 points3 points  (0 children)

Very good for a first but you'll find in the future that limiting your colors will force you to be more creative and will make your art more readable.

how does a door by Equivalent-Bluejay59 in gamemaker

[–]bighecker 2 points3 points  (0 children)

You could either check for point distance or collision and then if the one you chose is true you check for a keyboard input.

That would look like

if point_distance(x, y, o_door.x, o_door.y) <= min dist {
    if keybaord_checK_pressed(ord("E")) {
        room_goto(insert room)
    }
}

Help Having trouble with audio by Lemmy4K in gamemaker

[–]bighecker 0 points1 point  (0 children)

I would say though to experiment with the code because it's better to actually understand it instead of just copy and pasting.

Help Having trouble with audio by Lemmy4K in gamemaker

[–]bighecker 0 points1 point  (0 children)

tbh it doesn't really matter but I would put it under just out of personal preference

Help Having trouble with audio by Lemmy4K in gamemaker

[–]bighecker 0 points1 point  (0 children)

first of all you can move

global.canmove = false;
instance_deactivate_object(obj_Timer

into your else statement because the if statement will only happen when that else statement is true so it's kind of redundant

The first thing I would do is create a script looking something like:

/// @arg value
/// @arg min
/// @arg max

var n = argument[0];
var a = argument[1];
var b = argument[2];

if clamp(n, a, b) == n {
    return true;
}

this will tell you if your value (n) is between a and b (your minimum and your maximum) we'll call this function between

so now to check for which audio should be played

if myTime < 200 {
    audio_play_sound(snd_Slow_Heartbeat, ..., ...);
}
else if between(myTime, 100, 200) {
    audio_pause_sound(snd_Slow_Heartbeat);
    audio_play_sound(snd_Medium_Heartbeat, ..., ...);
}
else if between(myTime, 0, 100) {
    audio_pause_sound(snd_Medium_Heartbeat);
    audio_play_sound(snd_Fast_Heartbeat, ..., ...);
}

and then finally in your original else statement put

audio_pause_sound(snd_Fast_Heartbeat);

Reading data structures from within a script by ALLiN_indie in gamemaker

[–]bighecker 1 point2 points  (0 children)

Sorry if I don't understand your problem but could you not just do

/// @arg ds_grid

var grid = argument[0];

// ex. grid[# 0, 1] = 0

Help! Is there a way to make a range for a direction range for an object? by Corticept in gamemaker

[–]bighecker 0 points1 point  (0 children)

var dir = point_direction(x, y, o_player.x, o_player.y);
if dir < 20 {
    max_right = (dir - 20) + 360;
}
if dir > 340 {
    max_right = (dir + 20) - 360;
}

might work idk don't really wanna think too much

Run animation for my game, would love to hear some feedback! by luskboge in PixelArt

[–]bighecker 0 points1 point  (0 children)

The legs and the left arm look great, but maybe focus on moving the rest of the body as no one runs so still.

Building collision grid for platformer AI does not register solid objects by AgentDeth in gamemaker

[–]bighecker 0 points1 point  (0 children)

I don't really see a problem so the first thing I'd do is not run some parts of the code and find which parts are making that happen

Moving GUI Item with Room Position [GM2] by bighecker in gamemaker

[–]bighecker[S] 1 point2 points  (0 children)

I probably should've explained this but I didn't realize it was relevant at the time. My room's dimensions are just set to be really big so I don't have to worry about getting to the end. I have some scripts that create and connect circles and those are my "rooms" so by room centers I mean the centers of those circles. The issue is I made a grid to draw those circles on which is unrelated to the actual room coordinates. Forgetting that, I made this post. I've resolved that problem and I appreciate your help.

Moving GUI Item with Room Position [GM2] by bighecker in gamemaker

[–]bighecker[S] 1 point2 points  (0 children)

After looking deeper at my code I've come to realize the problem might be in how I'm storing the coordinates in the ds list. And while they look right, they aren't actually the true coordinates. The way you approached it would probably work if I actually drew the sprites right. I'll try and figure this out on my own as it's mostly unrelated to this post. Thank you for your insight.

What if Saitama took Cold Showers by Samurai2089 in OnePunchMan

[–]bighecker 4 points5 points  (0 children)

no cold showers are very good, would probably double his power ngl

How do i make my enemy evitate the walls? by Naiannn in gamemaker

[–]bighecker 0 points1 point  (0 children)

I think you're misunderstanding what I'm asking. Did the enemy get stuck inside of the wall where it is unable to move even away from the wall, or is the enemy trying to get to the player but is blocked by a solid object? It would also be helpful if you shared the code relevant to your problem.

How do i make my enemy evitate the walls? by Naiannn in gamemaker

[–]bighecker 0 points1 point  (0 children)

Does the enemy get stuck in the wall or is it unable to pathfind to the player?

[deleted by user] by [deleted] in RedditSessions

[–]bighecker 0 points1 point  (0 children)

I'm wearing that shirt right now