• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

background

  1. E

    GML How I can fix backgrounds lagging behind player?

    I have this code in Step Event: background_x = view_xview; So it's moving as I need but it lagging behind the view. How I can fix it? This is how background (sun) moves:
  2. E

    Legacy GM Background following player

    Hello, people. I want to sun background follow the player like Angry Sun in Super Mario Bros. 3. So my player have the sort of friction (move speed simply adds for horizontal speed until it reaches maximum speed value). So here is the problem. The sun background doesn't know about friction and...
  3. Architheutis

    Wide-Ranging-Backgrounds and their resolution-problems

    Hi there. I´m just developing my first game, that is aiming on android/iOS-gaming. I set up the levels on a world-size of 9000 x 1080 px. The viewport-camera-size is currently set on 1280 x 800 px. I put four background-layers for parallaxing effects - they do work! Unfortunately the imported...
  4. Tails1000

    GameMaker Top down RPG reflecting the sky at night

    I'm creating a top down RPG and am planning on having water sources such as lakes reflect the sky above. This is easy to achieve during the day, I just make a transparent water tile and change my background to be clouds or something. But it's when day turns to night is where it becomes tricky...
  5. P

    Question - Code Mask Backgrounds - showing through a mask the background behind

    Hello, I've being trying to create a way to make a certain area of my level to show the background bellow. At the moment I have two layer of background, one with color (behind) and one without (front). my objective is to create a mask on the front background so i could see the behind background...
  6. T

    Shaders Shader producing unexpected results

    Hello all, I have a newbie shader problem in gamemaker2 (2.1.5.246) I apply a blur shader to my background layer from an object's create event and it looks fine. However, when I call shader_reset() in the object's draw event (to draw something unblurred on top), the background looks funny. The...
  7. K

    GameMaker (Solved) How to set background sprites by code?

    How does one add a sprite to a background via code? I tried the following: globalvar town_background; town_background = layer_background_get_id("Background"); //I assume Background and Instances are default layers belonging to every room? At least they appear in the room editor...
  8. Coded Games

    Increase Scale of Background layer

    So is there any way to increase the scale of a background layer without just scaling up the sprite?
  9. J

    GameMaker Porting Background Issues

    I'm trying to port an old GM1.x project over to GM2. The auto-porting works fine but a lot of compatibility scripts are being created which I have no idea how it works. So, I'm trying to manually bring it over. Which is good as I can optimise some of the old codes plus learn what new things...
  10. R

    Parallax backgrounds

    Hi can someone help me, I cant understand why my background is starting mid screen and not taking the full width of the screen. I have been following Shaun Spaldings tutorial on this but it doesnt seem to work for me. here is my code... ///Create camera cam = view_camera[0]; follow =...
  11. M

    Legacy GM [SOLVED] background_htiled Appears to be Ineffective

    Hello all! After about two years of losing all game-making knowledge, I'm back on the forums! Now that I'm back into GMS1.4, I'm struggling with something that I can't seem to find the answer to for as long as I've tried to find an answer inside and outside the forums. I'm trying to create a...
  12. N

    GameMaker GameMaker Background Layer Unclear...

    I have a background layer called bg_random. But this code: randomize(); var lay_id = layer_get_id("bg_random"); var back_id = layer_background_get_id(lay_id); global.backgr=choose(bg_regular,bg_dark); layer_background_index(back_id, global.backgr); doesn't work. Nor does this work...
  13. JeanSwamp

    GML Horizontal Tile Different Backgrounds

    Hello, I'm trying to create some sort of background that scrolls horizontally for a runner game. A good example that comes to mind when trying to explain what I need is Jetpack Joyride, where the background transitions from one to another. Basically I plan to have more or less the same...
  14. M

    GameMaker Help me build a better parallax background with 3d

    So, i was working on the backgrounds for my game and it felt kinda odd that all the buildings had the same perspective regardless of where the camera was, so i tought it would be nice if the background had some perspective things, so i tried looking into some tutorials and some forum entries but...
  15. M

    Legacy GM Background disappears for no reason.

    So i've been playing around with scripts for a while and i encountered a weird bug just now. Sometimes when the player object is hit, the background may sometimes disappear. A gif with what is happening is below: https://media.giphy.com/media/dSdWqgUx5k7CHUF3gx/giphy.gif I have no idea why...
  16. H

    Discussion Strange background bug [SOLVED]

    Edit: SOLVED! I managed to fix the bug by resetting the background every time the room starts up. I did this easily by making a small script; background_ID = layer_background_get_id(0); background_sprite = layer_background_get_sprite(background_ID); layer_background_destroy(background_ID)...
  17. C

    GameMaker Static Background in a 3D Game

    So basically I have a 3d racing game where the player drives through a 3d environment. Everything seems to work so far! What I'm stuck on now is how to create backgrounds that don't move when the camera changed direction and doesn't grow or shrink. This might be similar to how the original Super...
  18. C

    HTML5 HTML5 Transparent background canvas

    In GMS2 is it possible to get a transparent HTML5 canvas background? The resources I have found to accomplish this pertain to GMS1 and things have changed a bit. Thanks!
  19. B

    Asset - Graphics Tropical Island Tileset

    Marketplace Link: https://marketplace.yoyogames.com/assets/6840/tropical-island-tileset Description The Tropical Island Tileset consists of 32x32 tiles and is designed for use in a side-scrolling platformer. It Includes ground and wall tiles for both beach and grass, as well as transitions...
  20. mar_cuz

    Job Offer - Artist Large Hi Res Pixel Art Stadium [PAID]

    Hi Guys, I am creating a sports game and need some background art. This is paid work. I need a huge image of a stadium done for my background. I don't need the grass that area can be blank. I just need a pixel art version of this stadium: here are some examples of the level of detail and...
Top