global instanceCount;
instanceCount = 0;
with(obj_name){
instanceCount += 1;
if(instanceCount < 2) spriteName = 'name';
else break;
}
- Game Maker Community
- → Viewing Profile: Posts: OMGCarlos
OMGCarlos
Member Since 13 Jan 2011Offline Last Active May 10 2013 12:15 AM
About Me
"I take -usual- and do unusual things with it"
I get my nickname "OMG Carlos" from the fact that everyone always says to me "OMG, Carlos?" (actually, it's more often "Carlos...WTF"!? - but that's a technicality) after I tell them about some crazy idea or wacky scheme I'm coming up with. I've been using GameMaker for almost 10 years and I always try to push the boundaries. For example:
* I've created a fully functioning IDE with it - http://gmc.yoyogames...1
* I made a learning chatbot - http://64digits.com/...ments&id=264522
* I designed a Lemmings Engine during a time when people on the GMC thought destructible terrain was impossible to do in GM - http://www.64digits....04.zip&id=14769
* And now I'm working on an online IDE for GM and GM:HTML5 - http://gmc.yoyogames...howtopic=524594
Some fun facts about me:
* I like to make music...CHECK, IT, OUT
* Bodybuilding is my other passion - http://img833.images...60831119652.jpg
* I was sponsored by my local skate shop (skateboarding) after doing it for almost 10 years
* I ran a two person web design business for a few months before I decided to go solo
* I have OCD like you wouldn't believe
* I often keep myself up at night thinking about my next moves
Anyways if you don't already, you definitely should follow me on Twitter and you definitely need to add me as a friend on here!
See you around!
I get my nickname "OMG Carlos" from the fact that everyone always says to me "OMG, Carlos?" (actually, it's more often "Carlos...WTF"!? - but that's a technicality) after I tell them about some crazy idea or wacky scheme I'm coming up with. I've been using GameMaker for almost 10 years and I always try to push the boundaries. For example:
* I've created a fully functioning IDE with it - http://gmc.yoyogames...1
* I made a learning chatbot - http://64digits.com/...ments&id=264522
* I designed a Lemmings Engine during a time when people on the GMC thought destructible terrain was impossible to do in GM - http://www.64digits....04.zip&id=14769
* And now I'm working on an online IDE for GM and GM:HTML5 - http://gmc.yoyogames...howtopic=524594
Some fun facts about me:
* I like to make music...CHECK, IT, OUT
* Bodybuilding is my other passion - http://img833.images...60831119652.jpg
* I was sponsored by my local skate shop (skateboarding) after doing it for almost 10 years
* I ran a two person web design business for a few months before I decided to go solo
* I have OCD like you wouldn't believe
* I often keep myself up at night thinking about my next moves
Anyways if you don't already, you definitely should follow me on Twitter and you definitely need to add me as a friend on here!
See you around!
Community Stats
- Group GMC Member
- Active Posts 329
- Profile Views 8399
- Member Title GMC Member
- Age 26 years old
- Birthday January 9, 1987
-
Gender
Male
-
Location
Douglas, MA
-
Interests
Coding
Bodybuilding
Composing (Music)
Decomposing (Food) -
Version
GM:HTML5
58
Mostly Harmless
Latest Visitors
Posts I've Made
In Topic: Changing a specific number of instances
20 October 2012 - 05:01 PM
Yep. And to make Subjugater's code limit to only two, simply do:
In Topic: will this switch statement work?*ANSWERED*
20 October 2012 - 04:36 PM
^ this. If you use whitespace properly, you can read a piece of code like you read a book. Otherwise, it'll make anyone who looks at your code want to throw up...I edit other peoples code all the time :'(
Switch cases work well in situations where you can take advantage of the "leaking" property of switch statements, that is, when a "case" doesn't have a matching break. For example:
Also, notice the extra whitespace I used there to make it more readable too
Making your code neat is ridiculously easy, just hit tab.
Switch cases work well in situations where you can take advantage of the "leaking" property of switch statements, that is, when a "case" doesn't have a matching break. For example:
movie_rating = '';
switch(ageBracket){
case 'senior':
case 'adult': movie_rating += 'R ';
case 'young adult': movie_rating += 'PG-13 ';
case 'preteen': movie_rating += 'PG ';
case 'toddler': movie_rating += 'G '; break;
case 'senior': movie_rating += 'And you get a discount :)'; break;
}
message_box('You can watch: ' + movie_rating);If you're an adult, all ratings are used. If you are a preteen, then you can only watch PG and G. If you are a senior, you can watch all the movies PLUS you get a nice message saying you get a discount. That would be probably triple the amount of code if using straight-up if statements. Also, notice the extra whitespace I used there to make it more readable too
In Topic: How do I add a speed cap to an object?
20 October 2012 - 04:31 PM
speed = min( speed, X ); // minimum cap
speed = max( speed, X ); // maximum cap
speed = max( speed, X ); // maximum cap
In Topic: HTML5 - Browser Selection
20 October 2012 - 07:26 AM
Look into tools like "Live Reload" http://livereload.com/. It's for mac, but I'm sure something similar must exist for windows.
If you set Live Reload to scan your games directory, every time you compile your browser will automagically refresh itself with the new save. You can have every single browser open and they will all automagically update. I do this in web development where I have IE, Chrome, Safari, and FF open and everytime I hit save in my text editor all browsers update without me having to do anything.
With an extra monitor, I don't even have to switch windows to see the new update lol.
Unless I'm not understanding what setting the target browser does (I don't own studio). I'm assuming it just launches that browser for previewing...
If you set Live Reload to scan your games directory, every time you compile your browser will automagically refresh itself with the new save. You can have every single browser open and they will all automagically update. I do this in web development where I have IE, Chrome, Safari, and FF open and everytime I hit save in my text editor all browsers update without me having to do anything.
With an extra monitor, I don't even have to switch windows to see the new update lol.
Unless I'm not understanding what setting the target browser does (I don't own studio). I'm assuming it just launches that browser for previewing...
In Topic: Computer Science Degress / options
20 October 2012 - 07:01 AM
I'm Project Director for a web development firm, and we had a few clients come visit us two weeks ago about a web app they wanted built. So we got to chatting and they asked us what our background was. My boss is hyper-social, so he cut in and wanted to talk in our behalf. He goes around: he has a masters in this, this one has a bachelors in that.
When he gets to me he goes: Carlos has a masters in CS. I swear I grinned so awkwardly I looked like the Joker...I don't have a degree. The thing is, they were so blown away by my portfolio during the interview they didn't even bother asking me what my education was. Among other things I showed them during the interview I actually googled "OITS GameMaker", went to my forum post here on the GMC, and downloaded my project to show him how I could build tools out of anything.
He said "well...****!"
At least in web development creativity goes a looooong way. I can't speak for game devs, but I'd imagine it's even more important for game development lol.
That being said, school is invaluable. While you're in school: soak up as much as you can, network with students/professors, and slowly build up a kickass portfolio of games.
Just figure out what you want to do...if you just want to develop games and thats it maybe Computer Science might be a good fit. If you want to eventually start your own game dev company or otherwise go beyond game development, business would probably be a better fit.
It's 2012, if you are really passionate about game development you'll eventually learn what you need from the internet anyways.
Since it's already your hobby, you might find yourself getting ridiculously ahead of your CS specific classes, simply because you apply everything you learn in class at home. If you DO do CS, just stick through it...I hear some of the more advanced classes are awesome!
When he gets to me he goes: Carlos has a masters in CS. I swear I grinned so awkwardly I looked like the Joker...I don't have a degree. The thing is, they were so blown away by my portfolio during the interview they didn't even bother asking me what my education was. Among other things I showed them during the interview I actually googled "OITS GameMaker", went to my forum post here on the GMC, and downloaded my project to show him how I could build tools out of anything.
He said "well...****!"
At least in web development creativity goes a looooong way. I can't speak for game devs, but I'd imagine it's even more important for game development lol.
That being said, school is invaluable. While you're in school: soak up as much as you can, network with students/professors, and slowly build up a kickass portfolio of games.
Just figure out what you want to do...if you just want to develop games and thats it maybe Computer Science might be a good fit. If you want to eventually start your own game dev company or otherwise go beyond game development, business would probably be a better fit.
It's 2012, if you are really passionate about game development you'll eventually learn what you need from the internet anyways.
Since it's already your hobby, you might find yourself getting ridiculously ahead of your CS specific classes, simply because you apply everything you learn in class at home. If you DO do CS, just stick through it...I hear some of the more advanced classes are awesome!
- Game Maker Community
- → Viewing Profile: Posts: OMGCarlos
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content

