surface

  1. SquiggleyPete

    GMS 2 Lighting with surfaces: can't change color of lights

    I'm setting up a basic lighting system in my game. There are two objects involved; obj_lighting, which creates the surface and handles all the drawing, and obj_light_source, which I place in the room at points where I want there to be a light source. I've put a variable in creation code of the...
  2. A

    GML High Float Precision Challenge (Buffers and Floats)

    I've been stuck on this problem for weeks now. Read a lot of material but didn't help. Finally I decided to ask for your expertise. May be solved by someone more knowledgeable easily. Here is the issue: I have a GLSL ES shader that sends some high precision floats to a surface. For the sake of...
  3. C

    Windows A number of instances reverse the view angle

    I found this problem while I was rotating the view angle, and there are two GIFs to show that: And I found that drawing things on surfaces will affect this, but I don't know how it works. How can I resolve that?
  4. zbox

    Asset - Extension CamSurface - Camera as a surface!

    CamSurface - Camera as a surface! Marketplace: http://bit.ly/2rkX96W Category: Extensions Price: $39.99 $19.99 Modules: Android Description: Purchase this asset on Itch.io to support the developer Use the front or back camera as a native Gamemaker surface in your games and applications...
  5. A

    Legacy GM Creating a Game Over Screen

    I'm trying to implement a game over screen in a prototype I was working on. I intend to have my game to have a level structure that would have two interconnected rooms per level which I refer to here as rm_House_of_Worship and rm_field. I want it so that a game over screen is displayed when a...
  6. sercan

    Android sprite_create_from_surface problem

    var surf; surf = application_surface; surface_set_target(surf); spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0); sprite_save(spr_test,0,path); surface_reset_target(); this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which...
  7. P

    background_create_from_surface not working.

    Please, I am not stupid, but I have trouble making a background from a surface. I wanted to make a Pause system where in a room, you press Pause and you go to a pause room whose background is an image of the room you left behind. This gives the illusion that you are still in the same room, and...
  8. Misu

    Particle effect not working

    Im using GMS2 and I cant get my particle effects to work (they dont show up). Can anyone tell what might be the problem with my coding? CREATE EVENT: ss = surface_create(1280,960) stream = part_system_create() part_system_depth(stream,1000) p_type = part_type_create()...
  9. zendraw

    Legacy GM [SOLVED]Q:Surface_save

    where does game maker save the surface using this function? the manual doesnt tell. is this code going to work anyway? for now nothing is saved in the working_directory. if thats where it supposed to save then somthing is probably wrong with the code if (keyboard_check_pressed(vk_printscreen))...
  10. D

    Windows Red and Blue channels seem to be swapped?

    I noticed that when I upgraded my game to GMS2 that the Red and Blue channels seemed to be swapped, but I can't determine what is causing it. In the surfaces, it draws most of the sprites as if they have these channels swapped, however some sprites are not, so when the surface is drawn to the...
  11. Mytchall Bransgrove

    Good fade transition?

    Hey guys, am thinking of now on, only using a surface to capture everything on screen, delete all objects I don't need and then fade the surface as an easy way to create a fade or motion transition. I was previously accessing every objects image_alpha and changing it. Any reasons not to use this...
  12. Tsa05

    GMS 2 Drawing to a surface doesn't work like drawing to screen :(

    Hmmrm, blend mode help? I'm drawing 2 images to a surface, but it messes up. They are png files, a character face and then an alternate expression face: They weren't drawing properly, so I've created a simplified example. Here's my complete example code (drawing event of object_0): var sur =...
  13. G

    Legacy GM surface usage causes huge fps drop

    So I've decided I want to use shaders. I can either apply shader over each drawn object, or draw them all on surface and then apply shader on the surface. I've been through various surface tutorials and I don't think I'm doing something wrong, but it's really bothering me. As I keep regular...
  14. S

    GML Create screenshot/sprite from view

    Hallo everybody, i have problems with views and taking screenshots/sprites. i use the extension perfect-fit-mobile-template from the marketplace. that means on mobile phones i use a view from the most space of the room on the whole display. on windows without the the extension i can use w =...
  15. David Richard

    Legacy GM Sprite from surface with alpha values

    I have been scratching my head over this little thing. Can someone help me out with this? What I want to do Draw an image with alpha values on a surface, a background part for example. Create a sprite from the surface with the correct background part's alpha values. Use that sprite for specific...
  16. B

    Legacy GM Having trouble deforming multiple regions of several surfaces with shader

    GM Version: 1.4 Target Platform: Windows Download: N/A Links: N/A (Sorry for just dumping hundreds of lines of code like this, but I don't know what to narrow it down to so I'm posting the whole thing.) I'm using fragment a fragment shader to add to the roster of customizations that can be...
  17. TotallyAverageGamez

    Copying a portion of a tilemap? draw_tilemap_ext?

    I would like to copy part of a tilemap to a surface so I can pass it to a shader. The problem is that there only seems to be one function for drawing / copying a tilemap; the draw_tilemap() function, which draws the entire thing (requiring the target surface be the size of the room, which is...
  18. C

    Android [SOLVED] Surface "disappears" after room_restart()

    Good morning Game Makers!, I started developing a game based on procedurally generated mazes. In my design, I used surface to draw shadows based on directional light. The game works in Windows as in Android enviroment... BUT In Windows enviroment, when I use a method like room_goto() or...
  19. H

    GMS 2 Drawing with alpha onto surfaces

    So I'm trying to draw an inventory using a surface, so I can easily manipulate how the whole inventory is drawn, I'm doing this by drawing the green slots onto the surface first, then the items, and then the numbers. Some of the items' sprites being drawn on have transparent sections. While the...
  20. P

    Legacy GM [SOLVED] Problem with lighting engine - surface

    So I decided to use this lighting engine, but there is couple of problems with it. For example when I'm trying to go fullscreen I get this: ########################################################################################## ERROR in action number 1 of Step Event0 for object obj_control...
Top