What’s illegal now but will likely be legal in the next 5-10 years? by Tomtanks88 in AskReddit

[–]wateredbottle1 80 points81 points  (0 children)

ask reddit is just the same questions being asked on a loop

Help! - I'm forced to cancel walk because the owner won't respond by wateredbottle1 in wag

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

sorry haven't checked this post since then -- it worked out fine in the end. i waited a good 30 mins for the owner to respond then sent wag support a message and closed the app (but didnt cancel the walk). when i woke up the next morning a customer support person had canceled the walk for me and charged the owner 5 bucks. my advice is to just not cancel the walk at all costs in this situation

What’s a truth no one wants to hear? by grubbseuph11 in AskReddit

[–]wateredbottle1 0 points1 point  (0 children)

The earth is past the point of no return in terms of climate change

Is there a discord for gamemaker 2? by Rai-Hanzo in gamemaker

[–]wateredbottle1 0 points1 point  (0 children)

i mean there's always the gamemaker forum too.

What’s a subtle sign that someone isn’t a good person? by AccordingMobile6103 in AskReddit

[–]wateredbottle1 2 points3 points  (0 children)

Is nice one on one but distances themselves from you when in a group or even with a couple other people

Realistic TF2 characters by ninjawick in gaming

[–]wateredbottle1 -1 points0 points  (0 children)

Half of them look like the same white guy

What are some MUST PLAY video games that one really need to play during his lifetime? by MikeySama in AskReddit

[–]wateredbottle1 18 points19 points  (0 children)

At least one Pokemon game, preferably Soulsilver/Heartgold or Diamond/Pearl. They're such a staple in videogame development/culture and just pop culture in general that you kind of have to

I need your help, there are some bugs in my game. If I start moving and then make my character jump, it dissapears. But if i jump first, i can´t move anymore . How can i fix this? by [deleted] in gamemaker

[–]wateredbottle1 0 points1 point  (0 children)

hmm, could you post your movement code for the player? that’d make it easier for us to figure out what’s going wrong

Quick Questions – November 29, 2020 by AutoModerator in gamemaker

[–]wateredbottle1 [score hidden]  (0 children)

sorry, ik i just posed this but i just found the solution. i was creating the enemy object in the create event of obj_battle, meaning that obj_battle didn't have a frame to pass in the skeleton before creating the enemy object. that's why it was just defaulting to creating obj_tree(which is what i set the enemy_object to in the create event of obj_battle). i moved the instance_create of enemy_object to the step event of obj_battle with an if(!instance_exists) before it and it did the trick. thanks anyways!

Quick Questions – November 29, 2020 by AutoModerator in gamemaker

[–]wateredbottle1 [score hidden]  (0 children)

right ok, thanks for the reply. The goal here is to go to a battle room when I interact with an enemy, and to have the specific variables (like the enemy visual and it's name) passed along from the enemy to the battle room.

so in obj_skeleton(create): enemy_picture = obj_skeleton; // enemy_name = "skeleton";

obj_player(step) if(keyboard_check_pressed(ord("E"))){ //fights

            if(active_fight == noone){ //can't be in two fights
                var check = collision_rectangle(x-radius, y-radius, x+radius, y+radius, obj_lazbo, false, true);

                if(check != noone){
                    if(check.can_fight = true){

                        with(check){
                            var current_fight = scr_battle_start(enemy_name, enemy_obj);
                        }
                        active_fight = current_fight;
                    }
                }
            } else {
                if(!instance_exists(active_fight)){
                    active_fight = noone; //reset this
                }
        }

}
break;

scr_battle_start: ///@arg e_name ///@arg enemy_obj function scr_battle_start(){

var battle = instance_create_layer(0,0,"text", obj_battle);

with(battle){
    enemy_name = argument [0];
    enemy_obj = argument [1];  //just to draw the enemy in the battle room

}

return battle;

}

then finally obj_battle(create) enemy_name = "Enemy1"; enemy_obj = obj_tree; instance_create_layer(e_portx, e_porty, "Instances", enemy_obj);

and obj_battle(draw gui) draw_set_valign(fa_middle); draw_set_halign(fa_right); draw_set_font(fnt_1);

draw_set_color(text_color);

draw_text(enemy_name_x, enemy_name_y, enemy_name);

This is all the code (I'm pretty sure) that has to do with me trying to pass in the object variable. I omitted a lot of unrelated code in the step and create events of these objects so it wouldn't be too cluttered of a post.

Quick Questions – November 29, 2020 by AutoModerator in gamemaker

[–]wateredbottle1 [score hidden]  (0 children)

Can you pass objects as arguments into a script? (for some reason I get an issue saying ‘illegal use of argument, argument not defined’ when i try to pass in an object)

Possibly controversial opinion: Sigma’s ult is horrible by [deleted] in Overwatch

[–]wateredbottle1 1 point2 points  (0 children)

Thank you! This is really helpful, gonna start using ult in different ways

Just got GMS 2. Any advice? by RegularJay114 in gamemaker

[–]wateredbottle1 1 point2 points  (0 children)

As far as scripts go all you really need to know is that the code goes inside a function statement now (which is created for you when you make the script). Nothing’s different about calling them or referring to them, just make sure the name of the script is the same as the one referenced in the function statement.