SE Custom Enemies Help Thread
Now it only spawns one fire and then dissapears, without spawning the mechakoopa.
Wait... I think I fixed it, but now it spawns the mechakoopa too early. what do I have to change to make him spawn the mk laterer?
I think I'll have to make a whole new thread only to discuss about that damn mechakoopa
Wait... I think I fixed it, but now it spawns the mechakoopa too early. what do I have to change to make him spawn the mk laterer?
I think I'll have to make a whole new thread only to discuss about that damn mechakoopa
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
Is it possible to create a enemy, which transforms after a few seconds?
you could do it like this:
Code: Select all
{
"spawnsenemy": "enemyitshouldtransorminto",
"spawnenemydelays": [3],
"lifetime": 3.1
}
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
I did that, but I want the enemy to shoot bullets, and transform after a few seconds.
alesan99 wrote:Do something similar to thisCode: Select all
"customtimer": [[0.3, "setspawnsenemy", "enemy1"], [0.3, "setspawnsenemy", "enemy2"]]
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
Thank you! Is there by any chance, something like "Spawnsenemytowardsplayer"?
EDIT: Nevermind, "spawnenemyspeedxtowardsplayer": true,
EDIT2: This error happens:
EDIT: Nevermind, "spawnenemyspeedxtowardsplayer": true,
EDIT2: This error happens:
If you have the new new enemy.lua (the one in the chat room) you could use "transformtrigger": "lifetime" and "spawnsenemy": "bulletbill" (or whatever).
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
WillWare wrote:If you have the new new enemy.lua (the one in the chat room)
Now that's here incase anyone doesn't want to look though a hundred pages.alesan99 wrote:I have no idea where to post this, so I'll post it here.
THE NEW ENEMY.LUA FOR MARI0 SE!!
I did all of this in about 1 hour (distractions included)
Why did it take me so long you ask? Laziness.
Changeloghttps://www.dropbox.com/s/s2potbu3spcd7oo/enemy.luaCode: Select all
ADDED "shothealth": integer ADDED "stomphealth": integer ADDED "transformtriggerobjectcollide": string (transforms when it collides with an object) ADDED "transformtriggerenemycollide": string (transforms when it collides with an enemy) ADDED "playerneardist": integer (enemy will transform when player is this near (horizontal)) ADDED "playerneardist": array (same as above, but you can select a region. set up array like this: [x, y, width, height]) ADDED "staticIfSeen": boolean (becomes static when player faces the enemy) ADDED "staticIfNotSeen": boolean (opposite of above) ADDED "rotatetowardsplayer": boolean (faces player in all directions) ADDED "nofollowspeedup": boolean (enemy the enemy's movement is "follow" it won't speed up when the player is far)\ ADDED "transformsintorandoms": array ADDED "transformpassedparameters": array (parameters that get passed on once the enemy transforms) ADDED customtimer actions: "reverse[PARAMETER HERE]" (turns positive to negative and negative to positive) "add[PARAMETER HERE]" "multiply[PARAMETER HERE]" ADDED transformtriggers: "lifetime", "playernear", "playernotnear", "seen", "notSeen" FIXED collide with specific entity transform trigger FIXED enemy being visible for one frame after it transformed (You won't have to make an empty frame anymore, Baf). REMOVED transformtriggers: "collidewith"
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
Doesn't work. The enemy doesn't transform.
Code: Select all
"transforms": true,
"transformsinto": "goomba",
"transformtrigger": "lifetime",
it's because of the "lifetime" thingFlutter Skye wrote:Doesn't work. The enemy doesn't transform.Code: Select all
"transforms": true, "transformsinto": "goomba", "transformtrigger": "lifetime",
try this:
example
"lifetime": 3
and
"spawnenemydelay" or something like that : (2.99)
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
Of course I added "lifetime" :P
Yeah, now that I try it, it's not working for me either.
Since I changed some things on my firebreathing mechakoopa,it just works fine, but when it is supposed to transform into a mechakoopa again, it just dissapears. Do you have any idea how to fix that?
I've got the code right here:
Please respond quickly, I have to finish it today, because I'll be gone for two weeks tomorrow
I've got the code right here:
the transformtrigger "lifetime" DOES work. I tested it already with my firebreathing mechakoopaSauloFX wrote:Just remove the "transformtrigger" "lifetime"
- Flutter Skye
- Posts: 1690
- Joined: 08 Apr 2012, 17:54
- Contact:
Both me and Willware tried it, and it didn't work.
Well it works fine to me, well, it workED fine until I changed something about the enemyspawning...
- Sunset_Moth
- Posts: 781
- Joined: 02 Sep 2012, 23:22
- Contact:
Sure you didn't do lifetime and trigger death? (Which should work)
Yes I am sure, I'm as sure as anyone can be, because everytime I did lifetime 3 and transformtrigger death it just dissapeared
- OrbitalBlueprint
- Posts: 528
- Joined: 08 Sep 2013, 20:11
- Contact:
Is there a way to make enemies float in the air without moving? I need it for a particle spawner.
- HugoBDesigner
- Posts: 2189
- Joined: 19 Sep 2012, 02:23
- Contact:
Not sure if the enemy maker have this parameter, but if don't, take this as a suggestion:OrbitalBlueprint wrote:Is there a way to make enemies float in the air without moving? I need it for a particle spawner.
"gravity": 0
- jwright159
- Posts: 442
- Joined: 20 Nov 2013, 22:26
Is there a collide with mario transform trigger? I need it for a mappack
Last edited by jwright159 on 17 Apr 2014, 21:17, edited 1 time in total.
alesan99 wrote:I have no idea where to post this, so I'll post it here.
THE NEW ENEMY.LUA FOR MARI0 SE!!
ADDED transformtriggers: "lifetime", "PLAYERNEAR", "playernotnear", "seen", "notSeen"
https://www.dropbox.com/s/s2potbu3spcd7oo/enemy.lua
- OrbitalBlueprint
- Posts: 528
- Joined: 08 Sep 2013, 20:11
- Contact:
What the F ork ?jwright159 wrote:Is there a collide with mario transform trigger? I need it for (mappack spoiler) Rainbow and Fluttershy kissing on a cloud untill you disturb them
Anyways, if this is just some sort of cameo or easter egg, you could turn them into animated tiles and link them to a trigger.
It doesn't work (Well now it works since I fixed it. btw redownload it).Tecminer wrote:the transformtrigger "lifetime" DOES work. I tested it already with my firebreathing mechakoopa
You used the old method i posted.
- HowToEatGirafes
- Posts: 516
- Joined: 05 Feb 2014, 23:18
- Contact:
I have a problem : i'm trying to make rex from super mario world but it lags everytime i open mari0 SE . It says "expected string's opening quote at char ..."
anyway here's the code :
rex (transforms into tinyrex) :
and tinyrex :
anyway here's the code :
rex (transforms into tinyrex) :
You put commas instead of decimals.HowToEatGirafes wrote:Code: Select all
"width": 1,4,
Code: Select all
"width": 0,75, "height": 0,75,
- HowToEatGirafes
- Posts: 516
- Joined: 05 Feb 2014, 23:18
- Contact:
Thanks alesan ! It works now i haveto fix graphics
- Sunset_Moth
- Posts: 781
- Joined: 02 Sep 2012, 23:22
- Contact:
I notice you say that after you ask about shipping in Chat Room.jwright159 wrote:Is there a collide with mario transform trigger? I need it for (mappack spoiler) Rainbow and Fluttershy kissing on a cloud untill you disturb them
(Also, they're both girls...)
Where the h eaven do you put these links???alesan99 wrote:Well now it works since I fixed it. btw redownload it
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
I advisejwright159 wrote:Is there a collide with mario transform trigger? I need it for (mappack spoiler) Rainbow and Fluttershy kissing on a cloud untill you disturb them
Code: Select all
"playerneardist":1,
"transformtriggers": "playernear"
I see nothing wrong with this.bubba_nate wrote: (Also, they're both girls...)
Twi is butch and Shy is awkward cutesy. I see them balanced out nicely as a couple.
I think that means twilight or something.TurretBot wrote:Twi?
I dont know anything about these things
Yeah, but he's shipping FlutterDash/RainbowShy/RainShyDashFlutter, not ShyLight/TwiShy/TwiShyLightFlutter.Tecminer wrote:I think that means twilight or something.TurretBot wrote:Twi?
I dont know anything about these things
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
oh yeah I meant Rainbow Dash.
I don't even know how I got that wrong.
I don't even know how I got that wrong.
Im stupid and keep messing things up. LATEST FIX, DOWNLOAD SO THINGS FUNCTION PROPERLY.
alesan99 wrote:Fixed some mistakes in my enemy.lua. Redownload it if you want enemies to work properly.
fly around
Code: Select all
gravity = 0
follow you
Code: Select all
movement:"follow"
go through walls
The underlined part is the important thing."mask": [ true,
true, false, false, false, true,
false, true, false, true, false,
false, false, false, false, false,
true, true, false, false, false,
false, true, true, false, false,
true, false, true, true, true]
- Sunset_Moth
- Posts: 781
- Joined: 02 Sep 2012, 23:22
- Contact:
GuyA transforms to GuyB. GuyB throws C1 C2 or C3 immediately, then disappears because of lifetime.MM102 in the suggestions thread wrote:an enemy parameter that allows randomized transforming it would work like "spawnsrandom" but with transforming
There ya go.
I need some help... again...
I get this error almost everytime I am making an enemy:
I get this error almost everytime I am making an enemy:
Could you post the code for one of the enemies you made that you know breaks the game?Tecminer wrote:I need some help... again...
I get this error almost everytime I am making an enemy:
its either this:
this:
or this:
Is there ever anyone going to respond to me?
Code: Select all
{
"quadcount": 5,
"animationtype": "frames",
"animationframes": 5,
"animationstart": 1,
"animationspeed": 0.1,
"stompable": false,
"movement": "none",
"spawnsenemy": "newbobombexplosion",
"spawnenemydelays": [0.5],
"lifetime": 0.6,
"width": 0.75,
"height": 0.75,
"static": true,
"active": true,
"category": 1,
"mask": [ true,
true, true, true, true, true,
true, true, true, true, true,
true, true, true, true, true,
true, true, true, true, true,
true, true, true, true, true,
true, true, true, true, true],
"emancipatecheck": true,
"autodelete": true,
"offsetx": 6,
"offsety": 3,
"quadcenterX": 8,
"quadcenterY": 8
}
Code: Select all
{
"quadcount": 6,
"animationtype": "frames",
"animationframes": 6,
"animationstart": 1,
"animationspeed": 0.1,
"nospritesets": true,
"stompable": false,
"killsonsides": true,
"killsonbottom": true,
"killsontop": true,
"movement": "none",
"lifetime": 0.7,
"spawnsound": "boom",
"width": 0.75,
"height": 0.75,
"static": true,
"active": true,
"category": 5,
"mask": [ true,
false, false, false, false, true,
false, true, false, true, false,
false, false, false, false, false,
true, true, false, false, true,
false, true, true, false, false,
true, false, true, true, true],
"emancipatecheck": true,
"autodelete": true,
"offsetx": 6,
"offsety": 3,
"quadcenterX": 8,
"quadcenterY": 8
}
Code: Select all
{
"quadcount": 5,
"animationtype": "frames",
"animationframes": 5,
"animationstart": 1,
"animationspeed": 0.1,
"stompable": true,
"killsonsides": true,
"killsonbottom": true,
"movement": "truffleshuffle",
"truffleshufflespeed": 2,
"truffleshuffleacceleration": 8,
"width": 0.75,
"height": 0.75,
"static": false,
"active": true,
"category": 5,
"transforms": true,
"transformsinto": "bomb",
"transformtrigger": "stomp",
"mask": [ true,
false, false, false, false, true,
false, true, false, true, false,
false, false, false, false, false,
true, true, false, false, true,
false, true, true, false, false,
true, false, true, true, true],
"emancipatecheck": true,
"autodelete": true,
"offsetx": 6,
"offsety": 0,
"quadcenterX": 8,
"quadcenterY": 19
}
Alesan, did you change something with the "dontmirror"? It doesnt work for me anymore
I didn't do anything to it
Then what am I doing wrong?
- MissingWorld
- Posts: 230
- Joined: 06 Jan 2014, 01:45
Might I remind you that they're FREAKING HORSES.Mr.Q.Marx? wrote:I see nothing wrong with this.bubba_nate wrote: (Also, they're both girls...)
Twi is butch and Shy is awkward cutesy. I see them balanced out nicely as a couple.
ANYWAYS. I'm trying to make an enemy that's tall enough to cover the vertical portion of the screen and push Mario. Y'know, scrolling stage stuff.
I dont get why this wont work!
I typed: "faceplayer": true,
and thes has come out:
That tank is supposed to look at me!
I typed: "faceplayer": true,
and thes has come out:
- HugoBDesigner
- Posts: 2189
- Joined: 19 Sep 2012, 02:23
- Contact:
Maybe the TEXTURE is inverted? I'm not an expert, but try this. If it doesn't work, then sorry...
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
So they're the same species? That sounds like a plus.MissingWorld wrote:Might I remind you that they're FREAKING HORSES.Mr.Q.Marx? wrote:I see nothing wrong with this.bubba_nate wrote: (Also, they're both girls...)
Twi is butch and Shy is awkward cutesy. I see them balanced out nicely as a couple.
I mean humans are very into making out with humans.
Also yeah, I'd say
Code: Select all
"dontmirror": false,
"faceplayer": true,
The image is already turned to the left and when I am on the other side of it it still doesnt change its direction, only if it turns around when hitting a block
And a dontmirror isnt even in the .json, so that cant be the reason
And a dontmirror isnt even in the .json, so that cant be the reason