image angle

  1. C

    SOLVED Image_angle Drawing Circle Out of Sprite

    Hey all, I'm a decent programmer but new to game dev, so I was following the GM2 tutorial "My First Game - GML". I followed the instructions and when I went to test rotating my ship, instead of just rotating like the original asteroids or like the example I was following, it'd rotate, but fill...
  2. R

    Path and image angle and direction? How do I combine them?

    So I have a path set... and I have my object on the path... and I have the sprite set to go along with it... How do I make the image rotate to follow the path it is going on? It seems like there is just something easy I am missing but for the life of me I haven't been able to find the correct...
  3. Necromedes

    Rotating View Angle With Player

    I'm using Game Maker 1.4. I'm trying to make the room view angle to match the player image angle. It works in a sense but not in the way that I'm wanting. I need the view_angle to match the player's image_angle rotation so that they are constantly facing the top of the screen. As it stands...
  4. A

    Legacy GM [SOLVED] Having trouble implementing clamp (for image rotation)

    Holaarrgghhh! I'm working on implementing a flashlight that the player should only be able to rotate a set amount depending on the direction they're facing - should be easy, right? Well, I've got the flashlight working, and code that makes sure it's facing the right direction according to the...
  5. Gamerev147

    GMS 2 Patrolling Enemy - Help!

    I've been trying to make an enemy that looks back and forth (using image_angle). So far I've just tried a few things limiting image_angle, but I can't seem to get it to work. Does anyone have some ideas on how I would program an enemy to simply look back and forth? If anyone needs more...
  6. R

    Fix Clipping of Rotating Enemys?

    Hi! I am making a little Top Down Shooter and I wanted to ask how to fix this? Basically the enemy are just following the Player and rotate towards them but if the come to close togheter they clip into each other until it looks like it's only one enemy. (Like in the picture) Thanks for your help!
  7. jf_knight

    Legacy GM [solved]"Unable to find any instance for object index..."

    I received the following error I'm working on an "aim/view" system that extends the view of the camera in relation to where the player is facing and if the player presses the aim key (aim_key = gamepad_button_check(0, gp_shoulderlb)) (if the player is facing left, the camera moves vertically...
  8. D

    Legacy GM Player's direction based on mouse position problem

    Hi everybody, i'm trying to make my player object facing the mouse cursor whenever this moves (like in top-down shooters). It works if the view doesn't move, but whenever the view starts moving the player's changes facing the mouse even if it didn't move on the screen (which i don't want)...
  9. A

    Legacy GM [SOLVED]image angle problem

    when holding the left mouse button, the player will do a blowing ability that aims towards the mouse, the problem is that before blowing in the direction it's supposed to, it appears to the right of the player obj_player create: changedir = true // blow ability canblow = true // if able to...
  10. S

    Using "clamp" with Image_angle

    Hi everyone, Im having trouble restricting my players gun angle. whether he is facing left or right he can aim the gun behind him even though he isn't facing that direction. I would like to restrict oGun to only aiming between 150 and 210 while he is facing left and 30 and 330 while facing...
  11. M

    GMS 2 Projectile: image_angle problems...

    I'm pretty stumped at the moment; I have a character (obj_player) in a top-down game which can shoot a projectile (obj_bullet) based on where the mouse is. However no matter how I code it I cannot seem to rotate the image of the bullet to the corresponding direction it is moving... the line...
  12. P

    Windows triangle wall collision

    I'm try to figure out how to do collision checking between a triangle shaped object,thats constantly changing its image angle(image_angle).Do you have any useful code I could use (studio 1.4).I'm useing h&vspeed for movement(If that matters).
  13. M

    GML [SOLVED] Image_Angle Issue

    Ok, so my problem is with the image angle variable. I'm creating a dungeon map generator that consists of a bunch of objects with random image indexes, and I'm trying to give them a random rotation (0, 90, 180, 270) every time i generate a new map. No errors show and the program runs fine, but...
  14. M

    Legacy GM Better way of coding oscillating movement

    I'm trying to code oscillating movement for my player. Basically, the player has a parachute, and is floating in the air. When he's idle (when there's no keyboard input) I want him to rotate slightly to the right, then back towards the left in an oscillating movement. I've written code that...
  15. D

    Legacy GM help image_angle gun problem

    Hey, I am trying to add a fire animation at the tip of my gun. for this I am using an instance_create in the step event when the gun fires and used length_dir so I could measure the tip of the gun from the origin... (Gun origin was 8,14. Gun tip was 26,5... Difference brings me to 18,9). My...
  16. 8feet

    Steam [SOLVED] How to rotate counter-clockwise (Landship Turret)

    So I'm trying to figure out how to make the left side behave the same as the right side. But goes counter-clockwise. What tank can do right now... - Turrets rotate slowly towards mouse. - Fire shells out of turret. - Limit rotation, prevents going full 360. What it CAN'T do... - Left turret...
  17. A

    Legacy GM [SOLVED] Changing player orientation according to mouse direction

    Howdy folks. I'm trying to get the player object to flip to face left when it moves between 91 and 269 degrees. I know how to do this sort of thing with platformer code, but this particular game has the player object move towards the mouse (as opposed to keyboard movement controls). I have set...
  18. L

    Android Drag rotate sprite

    (This is for a top down shooter with touch controls) How could i program my player to rotate as the player drags on the screen? for example if i drag from point A to point B (and its a 220 degree line) how to get the player to rotate itself toward the direction of my drag line? I presume it...
  19. L

    image angle problem...

    Ive been stuck on this problem for a while. Basically its the image angle. my game is a mobile resolution of 180x320 I have codes in my game that will stretch out everything in the game to fit the display size. image_xscale=global.gamescale image_yscale=image_xscale...
Top