
Let’s Code: Oreo Clicker Game (GameMaker Studio) | Part 1 of 2
__________________________________________________________________
Partner With Freedom through me:
Playlist Link:
Follow me on Twitter:
__________________________________________________________________
The Oreo Clicker game is my first GameMaker Studio project on video. I give it my best try to make a succesful game that everyone can follow, so if you are new to Gamemaker studio, or not yet acquainted with Gamemaker studio, this video series is a simple way for you to follow, and get a basic understanding of how this software works, and how it can perform.
Ore clicker is a fun little project that I hope everyone can see the fun in, And do not worry, I know that clicker games are absolutely toxic and way over done. but the uses for these games in understanding game development it great! It is a numbers game, which forces the developer to deal with variables and in this case, globals. It also forces art work to be done, to truly display what this game is.
It forces the developer has to understand much, and all that makes up a basic understanding of development, and a developmental process.
As we speak, this project has been finished, but will not be provided as a download, as that would be intruding on the Oreo brand, which is the last this that I would want.
* Disclaimer: This project is neither my original idea, as clicker games have been made for years. I am in no way associated with the Oreo brand, in any way, and do not claim any rights to the Oreo brand.
Sprite & Background Pack Download Link:
Thank you for downloading the pack, I hope this ‘art’ that I’ve made here for you, can help you out in future, and by all means, pass it on to anyone who would want to use it for anything. It is mine, but I do not attempt to restrict the use of it in any way.
Does this still work to follow along in gamemaker 2?
Chạm cỏ đi người anh trai. lập trình sắc dự án phía đông. spam dày.
im really new to this, and i wanna make a clicker game cx any tips ?
You dont need to create the release button if you use left press instead of left button. Left pressed works more like each time your press the mouse its a single clikc. Left button would be used if you want to be able to hold down the mouse and for it to continuely click. Other than that i think that this is a rather good tutorial I myself am working on a clicker as well. The only problem for me would be to design the sprites. Im not the most artistic.
When i click into the shop for the first time the score resets but it doesnt do it the rest of the times i click into the shop i want to try to preload the room on game start but im having trouble figuring out how to do so.
For some reason, when I put my tenx click object in the shop and run the game, the object isn't visable and is non interactive…
Ok. So I have got up to 11 minutes. I run my game and it launches. Then shows me an ERROR. Here is the ERROR message;
_________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_writescore:
global variable scorewhole(100000, -2147483648) not set before reading it.
at gml_Object_obj_writescore_DrawEvent_1 (line 2) – draw_text(250,10, "Score: " + string(global.scorewhole));
############################################################################################
Ok then I check it. Hmm… My code is the exact same as yours. I'm so confused at this point. Here is my code for obj_writescore so you can help me.
{
draw_text(250,10, "Score: " + string(global.scorewhole));
draw_text_colour(251,10, "Score: " + string(global.scorewhole), c_green, c_green, c_green, c_green, 1);
draw_text_colour(250,11, "Score: " + string(global.scorewhole), c_green, c_green, c_green, c_green, 1);
draw_text_colour(250,10, "Score: " + string(global.scorewhole), c_white, c_white, c_white, c_white, 1);
}
I did put an event 'Draw' in it and put a code into it. Please help. Anyone?
23:59 Before global, what is that symbol
https://scratch.mit.edu/projects/109287274/#player
Why the fuck my oreos dissapear when i go shop and back to clickroom ???????
PS : REASON IS GLOBALS, THEY MAKE THE OREOS BACK TO 0 SO HOW TO FIX IT
Can i use your sprites in my game and publish it?
If i start play and get 20 scores but if i go shop i have 0 scores??
Amazing tutorial!
Help pl0x
_________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_writescore:
global variable scorewhole(100000, -2147483648) not set before reading it.
at gml_Object_obj_writescore_DrawEvent_1 (line 2) – draw_text(250, 10, "Score: " + string(global.scorewhole));
############################################################################################
Help!
In Object obj_writescore, in Event DrawEvent action number 1 at line 3 : Symbol , or ) expected
In Object obj_writescore, in Event DrawEvent action number 1 at line 3 : Symbol ) expected
In Object obj_writescore, in Event DrawEvent action number 1 at line 3 : wrong number of arguments for function draw_text_colour
Compile Failed – Please check the Compile window for any additional information
In Object obj_writescore, in Event DrawEvent action number 1 at line 3 : wrong number of arguments for function draw_text_colour
Please help i really cant figure this out ;-;
thank you, there are not many videos like this in my language, and more than in my language your tutorial has a quality that surpasses that question, congratulations
I making Minecraft clicker
Hello, my tenx sprite wont appear at the shop menu, any tips please? :/
When i click on shop nothing happened do you know how to fix that
why you use left button and release? why not simply left pressed? why?
Could you show me how the room x and y positon?
P.S Don't swear
how do i change the size of the score?
For anyone following along and making this game, DO NOT use left button, use left pressed instead.
Also, use MOUSE LEAVE instead of LEFT RELEASE otherwise if you click the cookie, or whatever sprite you may be using, and move your cursor off the button without releasing the left mouse button, the animation will continue even though you're not clicking it.
The text doesn't show up for me. I set the room width and height 640 by 480 and here's the line of code that I wrote:
{
draw_text(320, 10, "Score: " + string(global.scorewhole));
draw_text_colour(321, 10, "Score: " + string(global.scorewhole), c_black, c_black, c_black, c_black, 1);
draw_text_colour(320, 10, "Score: " + string(global.scorewhole), c_black, c_black, c_black, c_black, 1);
draw_text_colour(320, 10, "Score: " + string(global.scorewhole), c_white, c_white, c_white, c_white, 1);
}
Can some one help?
I'm watching in 1080p on a 1080p screen and can't read the chatacter between 1000 and global at 24:20, I typed every character and nothing looks like it an dmy code doesn't run without it. What is it??
In Object obj_diamond, in Event LeftButtonDown action number 1 at line 3 : unexpected symbol in expression
In Object obj_diamond, in Event LeftButtonDown action number 1 at line 3 : malformed assignment
In Object obj_diamond, in Event LeftButtonDown action number 1 at line 3 : symbol } expected
In Object obj_diamond, in Event LeftButtonDown action number 1 at line 3 : symbol } expected
In Object obj_diamond, in Event LeftButtonDown action number 1 at line 3 : malformed if statement
Compile Failed – Please check the Compile window for any additional information
pls help
can anyone help me, how do i get the sprites that he gave us in the link to go into game maker??
sorry again, but whenever you clicked the global settings, it didn't show up with all the stuff that you had on the top what am i doing wrong?
at 18:18 when he was animating the sprite here's the code I put in…
{
sprite_index – spr_oreo_click;
}
what am i doing wrong?
I know this is an old tutorial but how exactly do i make the score not reset when i exit the shop? i looked through the comments and i didnt understand
Sprite With An Oreo
Lol,
Yes I Know What A Sprite Is
Other Than A Soda…
liked the video cause you develebors deserve so much more
At 42:00 it didn't work because you used tenx_amount before creating it, placing tenx_amount before tenx_price will fix it.
You Sweard u know theys children watching
Is Game Maker studio free?
…
…
Lead more
Here's a little piece of code imade to make a scale animation when you click that can be used instead of making two sprites for your clicker object, you can change the values of the variables in the create event at your please tho (I recommend setting your room speed to 60) :
//create event
scale = 1;
scale_speed = 0.03;
scale_max = 1.1;
scale_min = 0.98;
//step event
if(position_meeting(mouse_x, mouse_y, self)){
if(mouse_check_button(mb_left)){
scale -= scale_speed;
if(scale <= scale_min){
scale = scale_min;
}
}
else{
scale += scale_speed;
if(scale >= scale_max){
scale = scale_max;
}
}
}
else{
if(mouse_check_button_released(mb_left)){
scale += scale_speed;
if(scale >= 1){
scale = 1;
}
}
else{
scale -= scale_speed;
if(scale <= 1){
scale = 1;
}
}
}
image_xscale = scale;
image_yscale = scale;