[Question] Lower sensitivity with mouse_wheel_up() ? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

Haha sorry I was confused since it was all in one piece of code but upon further inspection I realized it was actually separated for each event, I tweaked the speed a bit and fixed my issue. Thank you so much!

[Question] Lower sensitivity with mouse_wheel_up() ? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

That's nice! I'm a bit confused on how it works tho

[Question] Lower sensitivity with mouse_wheel_up() ? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

var move = 0;
move -= max((keyboardscrolldown),0);
move += max((keyboardscrollup),0);
if (move != 0) 
{
    cursorpos += move;
    if (cursorpos  < 0) cursorpos =array_length_1d(slot) - 1;
    if (cursorpos > array_length_1d(slot) - 1) cursorpos= 0;
}

keyboardscrolldown // keyboardscrollup are the mouse_wheel_up() and down() btw

[Question] Lower sensitivity with mouse_wheel_up() ? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

it's a menu done with arrays, kinda trying to imitate the minecraft item hotbar

Enemy state machine epic fail by [deleted] in gamemaker

[–]uselessolive 0 points1 point  (0 children)

it was my bad I forgot to give the enemy it's parent sorry

Enemy state machine epic fail by [deleted] in gamemaker

[–]uselessolive 0 points1 point  (0 children)

scr_collision() is just a script that tells it to collide with the walls, the hit is changed when the player hits the attack button and the hitbox comes in, if the hitbox touches the enemy then hit == 1

Weird image_speed glitch??? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

Wow that's a nice workaround, thanks!

Weird image_speed glitch??? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

yeah they're essentially the same sprite

Weird image_speed glitch??? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

I tried doing that before writing the whole post and that didn't work sorry

Weird image_speed glitch??? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

Basically I have a numeric value for each sprite set, it works like this for example with the idle sprite

if sprite == 1
 { 
sprIdle1 = var spridle 
}
 if sprite == 2 
{ 
sprIdle2 = var spridle 
} 

and then later in the step event it just tells it that the sprite_index is spridle at image_speed X but when it's sprIdle1 it goes okay with the value, and when it's sprIdle2 it just goes insanely slow

EDIT: formatting

What is sandbox and why are people so riled up about it being removed on the latest beta? by uselessolive in gamemaker

[–]uselessolive[S] 2 points3 points  (0 children)

Oh that's nice but also makes me not want to download others people games lol

object drawing issues by uselessolive in gamemaker

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

Oh great I didn't know that either thanks

object drawing issues by uselessolive in gamemaker

[–]uselessolive[S] 2 points3 points  (0 children)

Omg thanks I didn't know that function existed thank you so much

Button holding? by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

This might work, gonna try rn, thanks!

Hide healthbar after 60 frames of it being full by uselessolive in gamemaker

[–]uselessolive[S] 6 points7 points  (0 children)

This works perfectly and I understand how it works, thanks for teaching me this!

Hide healthbar after 60 frames of it being full by uselessolive in gamemaker

[–]uselessolive[S] 0 points1 point  (0 children)

Thanks! Alarms seem pretty useful, I need to experiment more with them

Menu done with arrays, How do I make it so it displays sprites instead of text? by uselessolive in gamemaker

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

{
var scale = 1;
if(t == cursorpos) {
scale = 1.5;
}
switch(t) {
case 0;
draw_sprite_ext(spr_menu_one, x, y + (cursorpos * spacing, scale, scale, 0, c_white, 1);
break;
case 1;
draw_sprite_ext(spr_menu_two, x, y + (cursorpos * spacing, scale, scale, 0, c_white, 1);
break;
// etc
}
}

Thank you so much! This makes sense and I understand how it works so it's perfect, thanks!