YolkfolkThe Dizzy Fansite
Community discussion

A Little Trouble

Started by A Cool Guy on 7 August 2010 • 5,328 views

10 posts
#54775
Ok i just added 2 objects to my game the properties are

Object 1

dynamic
id 39
block
img+mat
call hander
action


Object 2

dynamic
id 40
air
img+mat
call handler
action
status 1


they dont show in the game but do show on the map they are on the same layer as the other which is layer 0 any help please.
👍 0
#71305
hmmmm.... *scratches head*

incidentally, if you click the second left icon in the map editor, you can choose which view type to choose. change 'default' (view everything) to 'game', and this will show you the map as it will look at the start of a game.

EDIT:: this may be a silly question, but you did save the map before loading the game didn't you? :tongue:

EDIT2:: also check that the tiles path that the editor is taking them from is the right one. If the editor is taking the tiles from another game, and you're using a tile that isn't in your game, then it won't show in the game.
👍 0
#71306
Ok in the editor in game view they show yet in the game one shows but has the wrong settings its set for block yet in the game it acts as air and the other doesnt show yet it can be interacted with?
👍 0
#71307
right ok, I think a few things need to be explained a bit more, regarding properties.

- if you have a tile as 'type' property as 'dynamic', then whatever you have set in the 'material' property doesn't really matter. The 'material' property only matters if you have 'type' set as 'static'.

- the 'draw' property works with either. 'img & mat' is the default, which draws the tile in the image map (displaying it on screen), and in the material map too (enabling you to interact with it). 'img' only draws it in the image map, and 'mat' only draws it in the material map (i.e. you can interact with it, but it won't show on screen). obv 'none' doesn't display it at all.

Therefore, a 'trigger' tile (e.g. infront of a door) that is invisible, but that you can action, would have a 'draw' property of 'mat', and the same for an invisible blocker. You may wonder under what circumstances you'd make a tile visible, but not draw in the material map? Underwater is a good example. if you have scenery underwater with a 'material' property of 'air', then there will be air available underwater. whereas if you set the 'draw' property to just 'img', it won't draw the air material in the material map. I hope that makes sense!

I think there was something else, but I can't remember it now.
👍 0
#71308
Thanks for the explanation however it don't explain how i used the exact same 2 objects with the exact same settings earlier and they work fine and act the way i wanted them to.
👍 0
#71309
[quote data-userid="346" data-postid="71308"]

Thanks for the explanation however it don’t explain how i used the exact same 2 objects with the exact same settings earlier and they work fine and act the way i wanted them to.

[/quote]

sometimes, *just sometimes*, it can be like that. If you really can't find the explanation for it, then the best thing to do can be to select that brush, delete the old one, and plonk a new one back down.

It's odd, and there's a small bug in there somewhere, but hey. *shrugs*
👍 0
#71310
Thanks i remade the whole room again and now it seems to work :surprise:
👍 0
#71314
[quote data-userid="23" data-postid="71305"]

this may be a silly question, but you did save the map before loading the game didn’t you? :tongue:

[/quote]

Urgh! The amount of times I've done this is embarrassing! :blush:

👍 0
#71315
Yeah it confused me cause i used the objects before and they worked fine.
👍 0