New Monster AI: Move towards player

User avatar
Redherring32
Posts: 447
Joined: Sat Aug 11, 2018 2:48 pm
Location: Usa

Re: New Monster AI: Move towards player

Post by Redherring32 » Tue Sep 11, 2018 1:30 am

I copied/pasted both scripts into ai script 10 but i got an error when compiling.
Can someone tell me what I did stupidly wrong?

Edit I thought I found out what my problem was,
and instead replaced null but I still got an error.
My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
User avatar
Redherring32
Posts: 447
Joined: Sat Aug 11, 2018 2:48 pm
Location: Usa

Re: New Monster AI: Move towards player

Post by Redherring32 » Tue Sep 11, 2018 2:13 am

OMG I undid what I did and still an error.
Attachments
Error.png
Error.png (115.4 KiB) Viewed 1083 times
My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
User avatar
dale_coop
Posts: 3360
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: New Monster AI: Move towards player

Post by dale_coop » Tue Sep 11, 2018 10:08 am

In your HUD, you have used/made an Image variable?
It is not supported in this version of NESMaker. So you need to remove it.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Redherring32
Posts: 447
Joined: Sat Aug 11, 2018 2:48 pm
Location: Usa

Re: New Monster AI: Move towards player

Post by Redherring32 » Fri Sep 14, 2018 3:28 am

I undid the changes I made to the HUD, but I get the same error...
My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
User avatar
dale_coop
Posts: 3360
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: New Monster AI: Move towards player

Post by dale_coop » Fri Sep 14, 2018 9:03 am

You did assigned the image var to an element of the HUD ?
If you did, select the element you previously assigned it to, select type "2-Text" and check you have nothing written in "String" property.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Redherring32
Posts: 447
Joined: Sat Aug 11, 2018 2:48 pm
Location: Usa

Re: New Monster AI: Move towards player

Post by Redherring32 » Fri Sep 14, 2018 3:35 pm

I just edited the HUD tiles bmp, but I tried using the changes and I still get the error.
My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
User avatar
dale_coop
Posts: 3360
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: New Monster AI: Move towards player

Post by dale_coop » Fri Sep 14, 2018 9:51 pm

Still the same error?
It’s not the bmp the problem, it’s your HUD. In NESMaker, HUD & Boxes, in the “HUD elements” tab.
Did you used a “image variable” ? If you did, you need to remove it.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
User avatar
Redherring32
Posts: 447
Joined: Sat Aug 11, 2018 2:48 pm
Location: Usa

Re: New Monster AI: Move towards player

Post by Redherring32 » Sat Sep 15, 2018 2:03 am

That did the trick!
Thanks a bunch!
My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
User avatar
dale_coop
Posts: 3360
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: New Monster AI: Move towards player

Post by dale_coop » Sat Sep 15, 2018 11:57 am

Glad you fixed it.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
digit2600
Posts: 173
Joined: Mon Apr 16, 2018 9:50 pm

Re: New Monster AI: Move towards player

Post by digit2600 » Wed Feb 27, 2019 10:54 am

I'm trying to get this to work in a platformer, but for some reason, while it mostly works, the direction facing is off when entering the screen from the right... basically, monsters will move towards the player, but the directions they face when moving right tends to be erratic.
Post Reply