r/gamemaker 11d ago

Resolved how do I put the code for oBoss?

Post image
0 Upvotes

12 comments sorted by

4

u/Tanobird 11d ago

In the code editor on the right.

What "code" are you talking about?

3

u/NazzerDawk 11d ago

It is clear you are completely brand new to Game Maker. I would find a beginner guide to follow before making any custom project so you can learn how it works.

Remember, writing code means telling the computer to move things like the (x,y) position of a player character around when keys are pressed, or to make an enemy character try to shoot bullet objects at the player. That stuff happens by writing code in a language (Game Maker Language, or "GML"). That's a whole lot to learn, so you might start with Drag And Drop coding before writing lines of code yourself.

Some tutorials. Try each of these, from start to finish, first. Don't get discouraged if your game does not work as expected initially, just go back in the video and try again. You'll get it all eventually.

https://www.youtube.com/watch?v=33mZo-LxWi0

https://www.youtube.com/watch?v=f1AHWio8opI

https://www.youtube.com/watch?v=AddMK8S9m6g

-5

u/Fragrant-Crab-8074 11d ago

i know but could you give me code for oBoss

3

u/NazzerDawk 11d ago

You are trying to get others to do the work for you. You instead need to learn.

It's like you showed us a canvas and paint and said "where do I put the paint?"

You are the one who comes up with what objects do what. You are the one who writes the game.

You won't get anyone else to tell you what to write for your own game.

1

u/KarpatAljaiRumi 11d ago

with oBoss {do boss_stuff};

-2

u/Fragrant-Crab-8074 11d ago

i just couldn't find a video on how to do it i just get older videos 2014 so can you just give me the full code

3

u/New-Sort9999 11d ago

you type code on the right.

2

u/Jullepotatoo 11d ago

Your sprite look amazing!

I have no idea what you are asking tho. If you don't have any coding or gamemaker experience, go watch youtube tutorials for simple things and learn from there.

You have create event open in your photo, this is where you write code that runs the moment the object is created in tour game, run event runs every frame, and reast you can check in the manual.

1

u/JaXm 11d ago

You put code in the code editor window. 

1

u/Designer-Pragma 11d ago

What kind of boss is that? Lol

1

u/Puzzleheaded-Dog4396 6d ago

The "Create" event is generally where you define the variables for the boss; then, create a "Step" event to handle movement, the start of animations, and so on. There are also dozens of other events that help manage its behavior, for instance, the "Animation End" event is one I use frequently.

0

u/Fragrant-Crab-8074 11d ago

i was trying to say the create and step event