Noob question - I can't figure out how to change the value of a variable relative to it's original value in GML. Here is my code:
if (ii.object_index == obj_player_2) obj_player_2.damage = 50;
But that sets the value to 50, instead of 50 more than it used to be. What do I put in to make it relative?
- Game Maker Community
- → Viewing Profile: Topics: secondstomarz
secondstomarz
Member Since 03 Dec 2011Offline Last Active Dec 14 2011 02:06 AM
Community Stats
- Group New Member
- Active Posts 10
- Profile Views 532
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
-
Version
GM7
0
none
Friends
secondstomarz hasn't added any friends yet.
Topics I've Started
Trying to change value of variable in GML
11 December 2011 - 07:42 PM
Mini Map in First Persion Shooter
10 December 2011 - 06:03 PM
So I am making a first person shooter game. So far it's going pretty well, you can walk around and shoot, but I want to make a minimap in the top left corner of the screen, showing the map from the top-down within a large radius around the player, and when people shoot, they show up as a red dot. So far I have two views: One main view, and a small view in the top left corner, but the small view is still in first person. Can someone help me make this work?
Can't open saved projects
03 December 2011 - 06:51 PM
When I try to save my project on GM7 Lite for mac, it gives me this:

So I type in something and save it as a .gmk
When I try to open it, however, it opens as a textedit document with lots of weird characters. When I try 'open with application...' and choose gamemaker, nothing comes up.
What am I doing wrong?

So I type in something and save it as a .gmk
When I try to open it, however, it opens as a textedit document with lots of weird characters. When I try 'open with application...' and choose gamemaker, nothing comes up.
What am I doing wrong?
Collision Event
03 December 2011 - 03:09 PM
So I was making a spin-off on one of the basic games in GM7. I had added a ton of content, and was having a lot of fun. I don't know what happened, but suddenly everything started going right through the main planes. On the first level the collisions were fine, but on every other level things went right through them. I have the planes set to persistent, so I don't have new instances of them in every room (So they can keep their individual scores throughout the game). Does anyone know why this is happening?
- Game Maker Community
- → Viewing Profile: Topics: secondstomarz
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content