Need Someone good at code to make some custom enemies for me

Mapping related threads and questions go in here!
Post Reply
User avatar
Jackostar10000
Posts: 417
Joined: 17 Jun 2012, 12:06

Post » 25 Jan 2014, 16:00

so im working on skyrush. i want it to include a little of everything new in SE. so i need someone to make me a few custom entities for it. No not a mod but just custom stuff for it.

Things i need done
Tornado- 2x3 Anything touching it gets tossed around (player takes damage too)

Friendly lakitu that follows you with a delay.

anything else i can think of

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 28 Jan 2014, 01:14

Here's the Lakitu:

Code: Select all

{
	"quadcount": 1,
	
	"animationtype": "frames",
	"animationframes": 1,
	"animationstart": 1,
	"animationspeed": 100,
	
	"nospritesets": true,
	
	"width": 0.75,
	"height": 0.75,

	"mask": [	true,
					true, false, false, true, true,
					true, true, true, true, true,
					true, false, true, true, true,
					true, true, true, true, true,
					true, true, true, true, true,
					true, true, true, true, true],

	"gravity": 0,
	"portalable": false,
	"category": 21,
	
	"movement": "follow",
	"stompable": false,
	"killsonsides": false,
	"killsonbottom": false,
	
	"offsetX": 6,
	"offsetY": 6,
	"quadcenterX": 8,
	"quadcenterY": 12,
	
	"followspace": 4,
	"distancetime": 1.5,
	
	"throwquadoffset": 1,
	"throwpreparetime": 0.5
}
Not sure how to do the tornado...

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 11 Mar 2014, 21:57

Sorry
I know this is a double post AND a bump, but I think I figured out how to make the Lakitu follow you vertically.
I would need the sprites to make the enemy, so if you could post them here, that would be helpful.

User avatar
Jackostar10000
Posts: 417
Joined: 17 Jun 2012, 12:06

Post » 13 Mar 2014, 09:26

uhh sure! ill grab em and update the post.
Just to be clear. The lakitu cant die. it cant hurt mario. its meant to follow mario as if it was your companion. also make sure he goes through blocks.

also here!
Image
the second frame isnt entirely necessary. if you do use it its more like a thing he will do every now and then for a few seconds.

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 13 Mar 2014, 09:58

Well, I got it to follow you horizontally and vertically...
I couldn't figure out how to not make it collide with anything. Sorry.
Here's the following lakitu that acts like a wall.

User avatar
Jackostar10000
Posts: 417
Joined: 17 Jun 2012, 12:06

Post » 13 Mar 2014, 12:51

This Is Great!
I Do however have one thing to ask... Can you make him faster? it would be good if you could make him keep up with mario.
also isnt there a property or something that allows things to ignore solid blocks. I guess if someone who knows the answer is reading this then let us know!

User avatar
Automatik
Posts: 1073
Joined: 20 Jul 2012, 17:54
Contact:

Post » 13 Mar 2014, 14:49

Mario's running speed is 9, so I've set "squidxspeed" to 9.
Also, I've modified the mask so that it stop colliding with the world.(http://guegan.de/mari0doc/custom_enemies.php#categories)

Code: Select all

{
	"quadcount": 4,

	"movement": "squid",
	"squidfallspeed": 4,
	"squidxspeed": 9,
	"squidupspeed": 8,
	"squidacceleration": 10,
	"squiddowndistance": 0,
	"squidhordistance": 1,

	"animationtype": "frames",
	"animationframes": 4,
	"animationstart": 1,
	"animationspeed": 2,

	"facesplayer": true,

	"kills": false,

	"jumpsfromblocksbelow": false,
	"notkilledfromblocksbelow": true,

	"spawnoffsety": -0.1,

	"quadno": 1,
	"nospritesets": true,
	
	"width": 0.75,
	"height": 0.75,

	"offsetX": 6,
	"offsetY": 4,
	"quadcenterX": 24,
	"quadcenterY": 12,

	"gravity": 0,
	
	"static": false,
	"active": true,
	
	"category": 20,
	
	"mask": [	false,
				true,  false, false, false, false,
				false, false, false, false, false,
				false, false, false, false, false,
				false, false, false, false, false,
				false, false, false, false, false,
				false, false, false, false, false],
					
	
	"emancipatecheck": false,
	"autodelete": false

}

User avatar
Jackostar10000
Posts: 417
Joined: 17 Jun 2012, 12:06

Post » 14 Mar 2014, 06:50

this is almost perfect but is there a way you can make him not collide with mario or enemies?

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 15 Mar 2014, 19:32

I need someone with coding knowledge too,i need a little megaman boss,he dies in 6 stomps,use the new health thing,and he shots his basic projectile:
here are the sprites:

Image
68X22

he turns around in cliffs and follow the player.

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 15 Mar 2014, 22:24

SauloFX wrote:he shots his basic projectile
We'll need the projectile sprites if you want him to shoot.

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 15 Mar 2014, 22:27

MagicPillow wrote:
SauloFX wrote:he shots his basic projectile
We'll need the projectile sprites if you want him to shoot.
i know Pillow,i'm working on it. :)

User avatar
Jackostar10000
Posts: 417
Joined: 17 Jun 2012, 12:06

Post » 16 Mar 2014, 00:25

can we first finish the cameraman. all i need is to make him to collide with mario and other entities.

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 16 Mar 2014, 00:55

I think you mean not collide, but I'm having that same problem with that enemy, so I figured I might as well do something I know how to in the mean time.

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 16 Mar 2014, 15:57

Here is the projectile:

Image


And Jack,i'm so sorry,i want to help you too but i'm not good at coding(actually i am,but i have some small problems).

BTW

I Have a question.

If i make a enemy sprite in any scale example... 32X23,he will work fine?

User avatar
Tecminer
Posts: 437
Joined: 11 Jan 2014, 20:44
Contact:

Post » 16 Mar 2014, 16:00

just try it

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 16 Mar 2014, 16:04

Tecminer wrote:just try it
I already tried,but it fails,i just made this question because my dumb coding may be causing the crash

User avatar
MagicPillow
Posts: 1108
Joined: 20 Jul 2013, 04:59
Contact:

Post » 16 Mar 2014, 17:51

Well if the image isn't a multiple of 16x16, the collision won't work right. unless you're Alesan...

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 16 Mar 2014, 17:56

MagicPillow wrote:Well if the image isn't a multiple of 16x16, the collision won't work right. unless you're Alesan...


ooooooooooooooooooooooooooooooohhhhhhhhhhhhhhhhhhhhhhhhhhhhhh..............


You made everything so clear!

But i think megaman will have to be 32X32,right?

User avatar
Tecminer
Posts: 437
Joined: 11 Jan 2014, 20:44
Contact:

Post » 16 Mar 2014, 18:04

i think so. Somehow i managed to do a 32x32 mechakoopa, you can use as a base for your enemy

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 16 Mar 2014, 18:10

Tecminer wrote:i think so. Somehow i managed to do a 32x32 mechakoopa, you can use as a base for your enemy
thank you. :)

but know i will need learn a little bit of coding,i think someone should make a create a enemy tutorial thread,i know we already have the enemy maker,but specific rules to make a enemy.

User avatar
alesan99
Posts: 2335
Joined: 30 May 2013, 21:42
Contact:

Post » 16 Mar 2014, 19:22

SauloFX wrote:but know i will need learn a little bit of coding
Making enemies doesn't require real coding.
Look, you only have to tell the game what the enemy does, you don't have to program the abilities.
he dies in 6 stomps,use the new health thing

Code: Select all

"health": 6
and he shots his basic projectile
I'll use bulletbills

Code: Select all

"spawnsenemy": "bulletbill",
"spawnenemydelays": [0.8, 1, 1],
"spawnonlyonextended": true,
"spawnenemyspeedx": 8,
"spawnenemyspeedxtowardsplayer": true,
"spawnenemyoffsety": -0.5
he turns around in cliffs

Code: Select all

"turnaroundoncliff": true
and follow the player.

Code: Select all

"movement": "follow",
"followspace": 2,
"distancetime": 0
Now add some more things and you'll end up with this:

Code: Select all

{
"quadcount": 2,
"nospritesets": true,
"turnaroundoncliff": true,
"stompable": true,
"health": 6,
"killsonbottom": true,
"killsonsides": true,
"animationtype": "mirror",
"animationspeed": 0.2,
"stompanimation": true,
"stompanimationtime": 0.5,
"stompedframe": 2,
"movement": "follow",
"followspace": 2,
"distancetime": 0.
"quadno": 1,
"width": 1.5,
"height": 1.5,
"static": false,
"active": true,
"category": 4,
"mask": [	true, 
			false, 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],
"spawnsenemy": "bulletbill",
"spawnenemydelays": [0.8, 1, 1],
"spawnonlyonextended": true,
"spawnenemyspeedx": 8,
"spawnenemyspeedxtowardsplayer": true,
"spawnenemyoffsety": -0.5,
"emancipatecheck": true,
"autodelete": true,
"offsetX": 12,
"offsetY": -1,
"quadcenterX": 16,
"quadcenterY": 16
}
Oh and you'll have to make the megaman frames 32x32
Haven't tested it but It'll probably work.

User avatar
SauloFX
Posts: 556
Joined: 26 Feb 2014, 02:52

Post » 16 Mar 2014, 19:28

alesan99 wrote:
SauloFX wrote:but know i will need learn a little bit of coding
Making enemies doesn't require real coding.
Look, you only have to tell the game what the enemy does, you don't have to program the abilities.
he dies in 6 stomps,use the new health thing

Code: Select all

"health": 6
and he shots his basic projectile
I'll use bulletbills

Code: Select all

"spawnsenemy": "bulletbill",
"spawnenemydelays": [0.8, 1, 1],
"spawnonlyonextended": true,
"spawnenemyspeedx": 8,
"spawnenemyspeedxtowardsplayer": true,
"spawnenemyoffsety": -0.5
he turns around in cliffs

Code: Select all

"turnaroundoncliff": true
and follow the player.

Code: Select all

"movement": "follow",
"followspace": 2,
"distancetime": 0
Now add some more things and you'll end up with this:

Code: Select all

{
"quadcount": 2,
"nospritesets": true,
"turnaroundoncliff": true,
"stompable": true,
"health": 6,
"killsonbottom": true,
"killsonsides": true,
"animationtype": "mirror",
"animationspeed": 0.2,
"stompanimation": true,
"stompanimationtime": 0.5,
"stompedframe": 2,
"movement": "follow",
"followspace": 2,
"distancetime": 0.
"quadno": 1,
"width": 1.5,
"height": 1.5,
"static": false,
"active": true,
"category": 4,
"mask": [	true, 
			false, 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],
"spawnsenemy": "bulletbill",
"spawnenemydelays": [0.8, 1, 1],
"spawnonlyonextended": true,
"spawnenemyspeedx": 8,
"spawnenemyspeedxtowardsplayer": true,
"spawnenemyoffsety": -0.5,
"emancipatecheck": true,
"autodelete": true,
"offsetX": 12,
"offsetY": -1,
"quadcenterX": 16,
"quadcenterY": 16
}
Oh and you'll have to make the megaman frames 32x32
Haven't tested it but It'll probably work.
You're the best

Image

Post Reply