[4.5.9] Trying to create a special tile type for generating a game object

Kanbei85

Member
I am trying to add the CreateObjectOnScreen command to a script for a new tile type I'm working on that will generate an animated puff of smoke by using a game object.

Problem is, for that macro, arg4 is "what screen do you want to create this object on?"

And I don't know the code for saying "whatever the current screen is". Anybody know how to do this? I just want this tile to generate a game object on that particular place on that particular screen wherever I place the tile type.

I'm also not sure I know how to properly code the X and Y coordinates of the tile into arg0 and arg1.

And also, I'm trying to make this tile active (creating the object) regardless of collision. I don't want the character to have to walk on the tile in order to cause it to create the object. Is this possible?
 
Last edited:

Kanbei85

Member
did you by any chance watch the tutorial videos I made on this during byte off 2020? I don't know which one it's in but I am pretty sure I made one doing this... https://youtube.com/playlist?list=PLAivaULpvswCD1iGWISRS6v3sHqQVDcwg
(apologies for forgetting. I forgot a lot between 2020-2022)
This is the exact problem I've been saying over and over about these tutorial videos. You can't search them. I'll try to get to watching them when I have the time, but obviously I'll have to watch a lot to hopefully run across it.
 

TolerantX

Active member
Those videos are like a minute each with no audio. That's not very watchable, I'm sorry to say.
then use Joe's tutorials. he tells you how to make a monster on a timer aka an object. do the reverse. make it check for a variable and when the player steps on the tile it lowers the variable, thus starting it up.
 

Bucket Mouse

Active member
The variable that stores the number of the screen you're on is currentScreen.
So make currentScreen your fourth number in the macro.

I think you're on the wrong track, though, by trying to get a tile to do this. A tile won't do anything unless a sprite is standing on it.
 

Kanbei85

Member
The variable that stores the number of the screen you're on is currentScreen.
So make currentScreen your fourth number in the macro.

I think you're on the wrong track, though, by trying to get a tile to do this. A tile won't do anything unless a sprite is standing on it.
This is what I was concerned about. I was wondering if there was a way around this, to create a tile that does something without a sprite on it. If not, then it's the wrong track.
 
Top Bottom