Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamemaker Essentials

You're reading from   Gamemaker Essentials Learn all the essential skills of GameMaker: Studio and start making your own impressive games with ease

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784396121
Length 154 pages
Edition 1st Edition
Arrow right icon
Toc

Object creation


With our sprites created and a room ready to go, we can now make our objects and program our game.

To start with, let's create the wall as there is no actual programming to make it work. Create a new object and name it obj_Wall. Link the wall sprite to the object, tick the solid option, and click on OK to close and save the new object.

At this point, we need to perform these steps for the collectable items. Create a new object and name it obj_Collect. Now, link the sprite to this new object and click on OK once again to save the object and make it ready for use.

Now, we will create the player object where we will do the programming and make the actual game. Create a new object and name it obj_Player. Then, give it the player sprite and we are ready to start programming.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime