Jump to content


BattleRifle BR55

Member Since 15 Mar 2007
Offline Last Active Mar 29 2016 06:56 AM

Posts I've Made

In Topic: 2D Distorted Sprite Shadows

28 March 2016 - 11:54 PM

A quick glance at the video should easily indicate that not only does this not use a shader, but his entire project doesn't use any at all.

In Topic: Play sound in <Game End> event ?

27 March 2016 - 03:41 PM

Well, it is possible but the game is just about to end, so of course it gets cut off immediately. :P

Play the sound, wait a few seconds, and then actually exit the game.

In Topic: Doing My Best Rattle Off Some Code On My Own, But I'm Not Seeing These Er...

27 March 2016 - 05:24 AM

The second one is preferable (although both are accepted in GML), but I was getting more at things like this:

variable = (( keyboard_check() ) || ( keyboard_check() ))

Because you're wrapping each individual function and then everything together, you're making it hard to look at because there are so many brackets. I'd at least remove the individual wrapping.

In Topic: Doing My Best Rattle Off Some Code On My Own, But I'm Not Seeing These Er...

27 March 2016 - 04:57 AM

You have a lot of unnecessary brackets. Start removing them and you'll come across your error.

For your second thing, it's !=, not just the exclamation mark.

In Topic: Problem whit loops...

27 March 2016 - 02:20 AM

if (keyboard_check(vk_space))
    image_angle += 7;

if (keyboard_check_direct(ord("W")))
{
    image_angle -= 7;

    if (image_angle < 29)
        image_angle = 25;
}
else if (keyboard_check(ord('S")))
    image_angle += 4;
else 
    image_angle += 7;

if (image_angle > 145)
    image_angle = 145;
Edit - excuse my slow speed, I'm on mobile. Glad you solved it on your own!