• 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!

math

  1. N

    Need help with math sorry lol

    I have villagers with a local var called job job = 0 is no job just standing around job = 1 is wood gathering job = 2 is stone gathering I have a global.jobless to tell me how many people are without jobs How in the heck do I safely remove and add jobs ? 1. I dont want to accidentally make all...
  2. C

    Math: how can i get the integer and decimal without round it?

    3.54 - how can i get the '3'(without round it)? - how can i get the '54'(without '0.')?
  3. T

    GML How to multiply with comma values?

    Hi, I need your help again, to get things started :) In my little test Project I wanted to multiply some values for Money. I got the numbers 1598 and 13.76 which I stored in strings. Now I did try to mulitply like this: res = real(string1) * real(string2); // maybe using 'real' here is the...
  4. Erayd

    Android Attempt at destroying all of one instance failure

    I'm looping through all of the available enemy objects currently existing in the room and destroying them one by one. In theory anyway, since that's not what's happening. Actually for some odd reason only some of the enemy objects are disappearing. Any thoughts as to why...
  5. Erayd

    Shaders This error code makes no sense

    Vertex Shader: shdBlend at line 19 : '�' Can anyone tell me what exactly is going on with this error code? I am thoroughly thrown off by this. I can't even type that symbol. Vertex Shader Code: #define TWO_PI 6.28318530718 attribute vec3 in_Position; // (x,y,z) attribute...
  6. L

    Legacy GM rotate view angle at an axis?

    how could i rotate my view around a certain point on the screen? by default it rotates around the center.
  7. A

    Legacy GM Change The Varible!!

    I know this is stupid but I need someones help please! The problem is that I have set up varibles called wrong,correct and txt! So what I wan to do is reset them every time reset = true So here are the photos: Here is all the code! enjoy !: Before.png After Wrong error.png So the numbers...
  8. A

    Legacy GM Coding error spotting?? Please!

    This is the code I'm using :))) Drawing the values on screen - Draw event instance_create(960,900,obj_text_box) draw_text(960,900,txt + blink) draw_text(50,50, "answer" + answer) draw_text(50,150, "correct" + correct) draw_text(50,250,"wrong" + wrong) Finding the...
  9. K12gamer

    HTML5 Mini Math Game (HTML5)

    Just released a mini math game Times 4 Table over at Itch.io... I'm new to that site...I'll eventually release other mini math games in the series until I have all times tables 1-12 covered. The games will have various themes, Pokemon, Pacman, etc... Description Use your Mouse to complete the...
  10. Z

    GameMaker [Solved] Making a laser between two coordinates

    I'm making a platformer and right now I want a laser that can activate a trap when the player collides with it. I have one laser emitter and one laser receiver. My current idea is to have the emitter search for the nearest receiver and then create an instance of a laser object for every 32nd...
  11. A

    Legacy GM Need Help With Code : Math Game

    Hello World I really need help with my code I keep getting error messages and I'm trying to fix it, but I just can't get it to work. This is just a simple game created in game maker studio. This game is for a school project and I am on a little bit of a schedule so if you can, respond as fast...
  12. P

    Legacy GM [SOLVED] AI advanced aiming, no idea where to start

    I have a top down shooter, where there is an enemy that will calculate where the player is going to be by the time his bullet reaches the player. He needs to aim in front of where the player is so that his bullets are harder to dodge. I want to use the player's move speed and direction, along...
  13. G

    Legacy GM Help! Figuring out math formula

    So, I'm kind of having a math trouble to create a simple effect (let's call it so) in my game. When the player is wearing this x-ray specs, I want a hidden arrow to show up, indicating the path to a secret area. There are two conditions, though: - The player can only see the arrow if he's...
  14. C

    Finding the angle to hit a target

    GM Version: GMS2 Target Platform: ALL Download: - Implemented example: http://host-a.net/u/Cheesebird/calculate_trajectory_v2.zip - Guide in .pdf:http://host-a.net/u/Cheesebird/target_trajectory_v2.pdf Links: N/A Summary: This is a guide on calculating the trajectory and angle of a...
  15. T

    Legacy GM Pythagoras' Thereom ruining my programming

    Well, I have this dog with this code: ///movement if (distance_to_object(obj_player)>16){ if obj_player.pldir == 4{ move_towards_point(((obj_player.x)+16),obj_player.y,(obj_player.movespeed)); } else if obj_player.pldir == 2{ move_towards_point(((obj_player.x)-16)...
  16. J

    [SOLVED] Lining up image speed with shot speed?

    Hi! I am not here to ask for someone to answer a question or fix a bug, but rather i need help figuring something out. I believe this topic would help a lot of people as it seems like a pretty common thing. In my game i have a character that shoots an arrow. this character also has an animation...
  17. J

    Math Help with i = mod 2, why?

    I am following chess tutorial for GM. My question is concerning the following code: inside of the for loop to create the chess board is this little piece of math. if ((i mod 2==0 && j mod 2==0) || (i mod 2 ==1 && j mod 2 ==1)) What specifically is happening here? thanks JB
  18. A

    GML Using math to help learn GML

    Im new to programming and GML but im pretty good with math up to algebra 2, so i started looking at youtube math videos that are relevant to GML and game programming to help me learn GML, and its working! I came across this one in particular that has really helped me understand whats actually...
  19. K12gamer

    Windows Santa's Numbers

    Short educational number game. The game helps students learn the numbers between 11 and 20. http://gamejolt.com/games/santa-s-numbers/221425#close Other games will be available in this series to teach other sets of numbers. I plan to have a different character for each mini game.
  20. zbox

    Asset - Scripts Big Numbers

    Marketplace: https://marketplace.yoyogames.com/assets/4937/big-numbers Category: Scripts Price: $1.99 FREE Modules: All Description: A set of scripts that allows you to store huge non-negative (to be added) numbers accurately in any base (Cookie clicker style games for example). Gamemaker's...
Top