help a noob

  1. Jmarlin3

    Help with objects touching - Disappearing floor

    The idea is that when the player is touching the floor, it turns red. However, when there are multiple floors, so if the player isn't touching it, I will go away. Code for floor: Step Event if !place_meeting(x,y,obj_player){ instance_create_layer(x,y,4,obj_redfloor)...
  2. B

    (help) how do you program an aoe attack?

    I'm developing a platformer using game maker studio 2 (latest version) and i'm trying to make my characters melee attack damage all the enemies it interacts with once per attack. The problem is that the attack either hits the same enemy multiple times or hits the first enemy it touches and...
  3. C

    Legacy GM Gamepad alternative to vk_anykey [Now- GML files of constants?]

    I need it for setting an alarm in my game. Its similar to how Release any key event is like keyboadr_check_released(vk_anykey), but I need a gamepad alternative for making something likegamepad_button_released(alternative).
  4. C

    Legacy GM [SOLVED]Diagonal Jump

    I'm making a fighting game with movement physics which is the same as Shaun Spalding's Platformer video Create Event grav = 1.5; hsp = 0; vsp = 0; jumpspeed = 20; movespeed = 4; last_dir = 1 inv=false dir=1 jumps=0 jumpsmax=1 Step Event: ///Input key_right = keyboard_check(vk_right) ||...
  5. C

    Legacy GM [SOLVED] Searching strings within strings using GML

    I made a string system for a fighting game where every action adds a string to the variable input_chain, and there is a variable input_chain_len=string_length(input_chain)+1, I also have a technique_chain variable which =" ", it changes if I do an action or technique, I have been able to make...
  6. M

    Looking for help on velocity

    Currently I am developing an educational game for school and the theme is road safety. I was planning on running a repetitive timer in the background where once it reaches 0 the lights will turn red and the player can cross. I am unsure on how i will be able to stop and start the cars movement.
  7. J

    I seriously need help with this

    Hi guys, Does anyone know why it says that there is an error, at the line 2 pos 9 at the keyboard_ckeck? { if keyboard_ckeck (vk_right) && place_free (x+4,y)) { x+=4; } }
  8. S

    GMS 2 How do I make my Object face the opposite way of my player

    Hey noob programmer here self teaching and I cant figure out how do you make an object face the opposite way of my player I don't know if I need to post any code here or not so if I do please say so! Thank you : ^)!
  9. C

    GMS 2 [SOLVED] keyboard_lastkey issues

    I'm following the tutorial from rm2kdev on fighting game input and everything was going pretty well until I decide to just try the Hadoken combination(DRp, p is a light punch). However, when I tried it, the input_chain comes as either RRp, or if I do it very fast it will come as ppp. I'm...
  10. E

    I need help with making game transitions

    Hi there! I'm a experienced drag and drop developer but, I'm new to coding on Game maker studio 1.4. Can anyone please tell me how to do a fade out transition? Here is what i want; If (player) on collision with (object) > fade in (go to room game over) Code I tried to do (but did not work) {...
  11. S

    GMS 2 How to I make my bullets shoot both directions??

    My bullets shoot to the right and I cant make it shoot to the right this is probably easy programming but im still a noob and I tried many different ways to make it work but it wont work out -Thank you!
  12. I

    GML I can't figure out the alarm system

    Ok so the thing is I'm trying to make a game where you swing the sword around with the mouse, like this: but I don't want the enemy to get hurt all the time, so I've made a global variable called collisionMask that determines if the enemy can be hurt. I'm trying to do so that every second it...
  13. C

    GMS 2 Making stairs you can go up and down.(SOLVED)

    Hi! Ive made stairs in my game, a plat former, using this: if(place_meeting(x,y + 1 ,obj_stair)) and key_up { vsp = -2; } if(place_meeting(x,y + 1 ,obj_stair)) and key_down { vsp = 2; } However once I get to the top of the stairs if I continue to stand there I will...
  14. FlatulenzaFiamm

    Sprite with no transparency

    I don't know why, but when I import a particular sprite sheet, GameMaker detects it to not being transparent. The rendering settings are the same as the other texture that work perfectly, but it seems to have problems only with this one. The sprite sheet is .png and has transparency, because is...
  15. J

    How to make iOS games

    hey guys, I have been searching on the internet, trying to figure out how to publish a game that you have created in GameMaker to IOS (AppStore), but I can’t seem to find it. Does anyone know how to publish your game to iOS ?(is it even possible?)
  16. S

    GMS 2 2 problems D:

    Ok so I have two problems and decided to post it to one thread My first and most important problem is I have my player pick up a gun by colliding with it that works perfectly fine BUT when i leave that room and go to the next the gun is no longer with my player I dont know what code to put with...
  17. S

    GMS 2 Help with my switch statement plz

    So this is my first time coding anything and I think its going really well... but i do have a problem. Switch statements- I made one successful switch but now im really stuck with the statement im using right now here it is create //weapons enum WEAPONS_MODE { HANDS, PLASMA } weapons =...
  18. N

    Problem with a code. Could you help me?

    Hello everyone, I'm starting GML and I have a problem with some code I just wrote while following a tutorial. Basically, it should make my obj_player stop when colliding with a specific tile. But when I lauch the game, the obj_player just moves out of screen. Could you help me? Here is my...
  19. FlatulenzaFiamm

    Drag And Drop Texture Glitch for no reason.

    Hi all, some days earlier I tried to ask help about the same topic, but the file got corrupted before someone could help me. So... I've tried it again. Anyway, my problem is a texture. This texure appears normally at the start, but later in the animation of it, it starts blinking. Before, it...
  20. W

    Drag And Drop Boss Health Bar [Solved]

    I was trying to make a boss health bar but when i add a health bar then the boss disappears and when i add health bar with letters (example : Boss Health : 200) and then it shows just a text and the boss disappears again but when there is no health bar then the boss appears i think i need to do...
Top