Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Akamatsu

#16
Yeah,

I'm not sure either I did have local enemy = ... I honestly have no idea why but when I changed it to self instead of enemy it worked I can send you the whole code if you want to take a look maybe I did something wrong?

Honestly I'm much better at making sprites then coding so far so I really need to work on that is their a way for me to get in touch with you guys like steam or discord maybe?

I don't want to bother you with to many questions but you guys seem nice and I could use your advice on how things look and act if that's fine with you of course.
#17
"Using the tag code = lua inside square brackets is super helpful is people are looking over your code, so you might do that next time. Have you used BBC formatting like that before? You can just copy and paste the whole enemy script so someone helping you can see how things are related.

One thing it looks like in your create-a-bat code is that enemy:create_enemy() needs x and y coordinates specified, or else you're creating it up at 0,0: the top left corner of the map. Perhaps they're being created but you can't see them up there for some reason?

Also, when are you calling your timer? You should probably call the timer in the enemy:on_restarted() event, or enemy:on_created()
It doesn't look like you're ever calling the timer?"

Actually I have it set to create the bat's on self and sorry I had no idea you could use brackets  ??? what I was doing in my code doesn't work it seems what I tried to do was when the enemy was created make it run a check_hero command then under the function check hero make it spawn the bat and set a timer to check the hero again seems that doesn't work though.

I just tested out trying to set the timer under enemy:on_restarted() and it worked!
Thanks for the help!

Sorry, for my ignorance.
#18
Okay so I managed to figure it out for some reason you can't use

enemy:set_pushed_back_when_hurt(false)

it has to be

self:set_pushed_back_when_hurt(false)

there is one more issue I'm having with my mini boss I'm trying to make him spawn bats every 3 seconds but its not working mind taking a look at the code?

here is the first bit

function enemy:on_created()
  self:set_pushed_back_when_hurt(false)
  self:set_hurt_style("boss")
  sprite = enemy:create_sprite("enemies/Ghomess")
  enemy:set_life(100)
  enemy:set_damage(9)
  enemy:check_hero()

end

I used   enemy:check_hero() to make it run the next part

function enemy:check_hero()
enemy:create_enemy{
name = "BadBat",
     breed = "BadBat",
}

sol.timer.start(self, 3000, function() enemy:check_hero() end)
end

it seems to be an issue with the timer it doesn't work for some reason not sure why do you notice anything wrong?

#19
I can also never get this command to work

enemy:is_pushed_back_when_hurt(false)

its supposed to make it so they can't get knocked back but it never does anything for me really annoying cause it makes my mini bosses and bosses feel weak.
#20
Thanks dude,

I've been spending the past 5 days mostly making all the sprites and working on the first dungeon.
right now I'm working on an Iron Knuckle enemy seem to be having issues getting him to play his sleeping animation while not active.

This command doesn't seem to do anything for some reason am I doing something wrong?

sprite:set_animation("sleeping")

Thanks in advance!
#21
Yeah,

sorry about the no periods I was extremely tired when I wrote this.
I basically, figured it out for the most part I was having trouble with the timer system, but I know how to make it work now.


Thanks!,
#22
Hey Guys!,

I'm working on a new zelda game that is a prequel to majora's mask!
but I've run into some issues most of them I was able to figure out but there is one that is really annoying me currently I'm working on the stone tower area trying to finish up the story and plot in this area first I managed to make just about any enemy I wanted work but the redead!
The issue I'm having is more of a lack of experience with the engine, I suppose I'm trying to make the redeads act like they would in the game I don't want them to bite link however, I just need help making them scream and paralyze link, I have no idea how to go about this so I figured I would ask around the forums hopefully somebody can explain what I should put in the code thanks!