player

  1. C

    SOLVED Player look at the top / move the camera

    I am a novice with GameMaker. I search to coding a smooth moving of the camera, to represent the view of the player. When the player press "up" the camera move to top until a limit. When he release "up" the camera comeback to initial position. On the code that I wrote the while condition crash...
  2. P

    Making Enemy Shoot at Player

    Hi. I'm using Drag and Drop and am new to coding so I'm having some trouble with this. I've created an enemy called obj_enemy_dropper that that bounces off walls. I've tried looking through tons of threads and watch countless videos but I can't seem to find out how to make the bullet shoot at...
  3. Klanes

    Player being pushed by a flying block

    Hello everyone, first, sorry for my English. I'm a complete coding noob, but I love to get in trouble creating some very very very basic games xD In the game you must dodge some flying blocks. This blocks can push the player if he can't climb on top of them (or dodge them). Everything seems to...
  4. DPMlofty

    GML My player is stuck on the wall

    He's stuck on the wall, but the collisions and mask are correct what i want to do is just teleport him to the nearest free space
  5. H

    How to make player object move with sine wave platform

    I have been using code below for moving platforms, now I would like to implement that code so that when my player is on the platform the player object moves with the platform. I know an easy way to do moving platforms is just horizontal speed = direction * movement speed; and then you add the...
  6. L

    iOS Playing videos on iOS app, possible ?

    Hello, I was wondering if it's possible to embed videos into apps for iOS. I'm cool with them playing in either borderless area embeded within the app, or they may also open iOS's video player to play them upon tap / click of a button. Please let me know if there's any way to make it happen...
  7. xilian7125

    GMS 2 (SOLVED) enemy stops moving

    hi there. there are many problems im having with the enemy but this is a big one when i touch the enemy, both the enemy AND the player get stuck. code: PLAYER: CREATE: hsp = 0; vsp = 0; grv = 0.4; walksp = 8; hp = 100 state = PLAYERSTATE.FREE hitbyattack = ds_list_create(); enum PLAYERSTATE...
  8. Z

    room_go_to in series

    Hi everyone, weird question maybe: I want to teleport my player to multiple rooms, then go back to the starting room. The reason is that I want, at a certain moment, have the player teleport to each room, change that room's instances, go to the next room, change that next room's instances...
  9. A

    Camera doesn't follow player in duplicated rooms

    Hey guys, I'm stuck at this problem : I'm doing a Roguelike and I want the player to go randomly through some pre-generated maps. I got one map ready (just a straight path from left to right) so when player hits the right end of the path I make him spawn in the next room where the blue circle...
  10. Z

    Spritesheet coordinates vs single sprite image index

    Hi everyone. So I'm passed the point of initial learning and I decided to start over again, now a bit more professional. I had a project going that worked really well, but the code was extremely sloppy and became too chaotic to handle anyway. Now one of the more important things in my project...
  11. EZTALES

    Legacy GM only go to sprite if global += 1

    hey yall quick question, my player has five sprites, but i only want the player to be able to got to the first and last sprites if its global.oil(points) is at least at one, is there any way to do this? any help is great! thanks! -Eztales
  12. EZTALES

    Legacy GM help on moving sprite

    hey yall, i wrote this little bit of code but i need it for 7 sprites instead of only 3 in this case, i assume its a easy fix but i have no idea on how to do it any help is great! Step Event if keyboard_check_pressed(vk_right) and image_index != 2 then image_index += 1 //moves player right if...
  13. timartinelli

    GMS 2 Help with Project Player + Weapon + Mouse

    Help with Project Player + Weapon + Mouse Hello, friends, I have a hard time defining how best my game works with the Sprites of Weapons + Mouse to do the sights. See the image below, I made my Player without the arms to put the arms together with the Weapons, not if this is the best way. But...
  14. W

    GMS 2 [SOLVED] Moving Platforms! Duplicate Obj. isn't working

    Hey everyone, first time posting in GMC and I'm a total beginner. In my game, I have a basic moving platform that when when the player stands on it, his speed matches it and he moves with it. That's all working fine. However, when I try to duplicate the platform obj. and place more of them into...
  15. K

    Windows More realistic lighting

    Current My Game Lighting : gif - http://naver.me/G6KGwnry Currently, the lights are on the player's head. However, fixed lighting is required. Also, I would like to change the angle of illumination with time. like real sunlight The room is very huge. view size is 960,540 and view hsp = 10 ...
  16. E

    Stop Enemy from following

    Hello, First time here. I hope I've put this in the right place on the forum. I have a problem with my enemy. I want the enemy to follow the player if he's close enough but if the player run away I want the enemy to stop chasing him. The problem with my code is he wont stop. The chasing works...
  17. D

    Making save profile

    Can someone help me i want like different save profile where ai can save different characters and different saves. put tutorial link and thanks ;)
  18. EZTALES

    Legacy GM better player movement, a step up from drag and drop.

    hey guys. so for convenience sake i was wondering if you guys had any better ideas on how to move you player, right now my code looks like this: Keyboard Event for <Left> Key: execute code: if (sprite_index=spr_player_NML){ sprite_index=spr_player_L; } if (sprite_index=spr_player_NMR){...
  19. I

    Animated can't walk

    anyone, i need help. i'm newbie using gms 2. i make a palyer run with animated but can't walk if i press the W button before. can anyone explain that ? key_left = keyboard_check(vk_left) || keyboard_check(ord("A")); key_right = keyboard_check(vk_right) || keyboard_check(ord("D")); key_up =...
  20. id07

    Asset - Extension help with Video Player for GMS 1.4

    I recently downloaded this video player by Lonewolff, here: https://marketplace.yoyogames.com/assets/195/video-player-for-gms-1-4 When I follow the directions, I get the following errors: ___________________________________________...
Top