When placing monsters/objects on screen..

dale_coop

Moderator
Staff member
You may have already thought about that, but...
When placing monsters/objects on screen, doing a right-click, how about naming the items "Game Object 1", "Game Object 2", "Game Object 3" and "Game Object 4" (instead of "Monster 1"..."Monster 4") ?
It would be make more sense, since we can place powerup/effects on the screen and not only monsters.
 

WolfMerrik

New member
I like this idea, when I first tried to place objects, I did find this counter-intuitive. I got used to it, but it would definitely save some confusion when just starting out.
 

Jonny

Well-known member
Sorry I know these posts are old but I think this answers something I've been trying to figure out...

So, to confirm... objects such as health and power ups etc have to be set up as "monsters" ? but they're in "game objects"... so confused about this part.

I've been watching all the tutorial videos but for some parts objects are imported so I'm a bit confused how they are set up. i.e how to scripts are applied to an object / how to actually place them.

At the moment I've got a few screens made with a animated moving player, sorted my hud and everythings finally looking nice but I just can't figure out the objects / scripts part. Is there a tutorial on here that explains a simple example like 'how to create and place a health pick up' or something like that?
 

dale_coop

Moderator
Staff member
You are not posting on the correct section of the forum, you should make a dedicated topic on the "Ask for Help" section.
But to reply to your questions...

First...
The "Game Objects" are the same as the "Monster Objects" the only difference is:
- the Game Objects use the "GameObjectsTileset.bmp" tileset, and share the same sub palettes (the ones assigned to the Player).
- the Monster Objects use their differents tilesets, and will use different sub palettes (the ones assigned to the screen to which you will assign the monsters)

For ALL those objects, you can set different "flags", when those functionally flags are set, the game engine will execute different scripts or specific code for each of them.

Then...
If you want a "pickup" object, you need to set the "pickup / powerup" flag in the object details dialog. If you want a monster, when you touch it will hurt you or you can kill it, ... you will set the "monster" flag in the object details.
But, as explained in the tutorial videos, those are only a default behaviors... you can modify the scripts to do anything you want with those flags. You could also have totally different flags for your objects, if you code different behaviors for them.

In the Game Object list, 4 of them are specials: the "Pickups" labelled ones.
For each of them, a PowerUp script can be assigned. So, when you collect them, you can execute something. For ex, you collect the Health Pickup and the game engine executes the Increase Health script. You collect the Currency Pickup and it will execute the Increase Money script, ...
The association between the Pickup object and the script to execute is done in the "Project Setting>Script Settings" Window.

For your "Health Pickup", set the "pickup / powerup" flag, assign a bounding box... and just place it on the screen:

2020-04-20-16-01-33-Monster-Animation-Info.png

Note: but to be able to place objects on a screen (game object or monster object) you need to assign a Monster Group to your screen (in the screen Infos), then you will have the menu.
Also, assign the "IncreaseHealth.asm" script to the "Power Up 00" element in your "Project Setting>Script Settings":

2020-04-20-16-00-24-Project-Settings.png
 

Jonny

Well-known member
Thank you once again, that was extreamly helpful. I think if they were all simply "Objects" and a monster, power pick up, chest etc where all under that unbrella it would have been easier for me to grasp. I do understand why they're kept seperate for the Tilesets, pallettes etc though. Sorry for posting in the wrong place. Really appreciate your help! :) I can progress with my game now...
 

dale_coop

Moderator
Staff member
Some of those concepts were explained in the old videos... It's normal that newcomers are a little lost about those things. Don't worry, if you have an issue or a question and don't find your answer. You can write a new topic in the "Ask for help" section ;)
 
Top Bottom