I need help with this and it’s too complicated for me, so I wish to reach out to others to see if they can help, I also would like the code, and I’m in no hurry, and I stole code from somewhere else, and it doesn’t work. Here’s my game: Maze of Cheese - Flowlab Game Creator
Hey so it looks like you are trying to use my example, but I’m not seeing an Enemy object at all in your game…
If you copy the code from the enemy in my example into your own Enemy object, then it should work (let me know if it doesn’t).
Well, I do have one, it’s just not on the level, and what I need for an enemy is an enemy that will randomly follow the maze, and chase you until you’re out of its range that is also attracted to noise, which the noise part is optional.
Also, your code does work, and works well, but it doesn’t have the mechanic where is can stop following you
Ah, I see, well when do you want the enemy to stop following you (what conditions should happen for it to stop)? Just the range / distance becoming greater than a certain number?
Also the random wandering the maze shouldn’t be too hard to add to my existing code.
I want it to stop following when you’re out of its range, which is when it is off-screen, and it is a little too fast and spins, I want it to be not spinning.
Alright, I can try and make a version of my example game with those features
Thank you so much, I’m just a high schooler.
No problem, it might be a little while since I’m at work right now, but I will start thinking about it now anyways
Yeah, I can wait, and do you think I’m crazy for also trying to make a game like Pac-Man but instead there is 40 ghosts?
Hahaha well if it’s like pac-man, you’d want the enemies to move along straight lines, right?
Yeah, but with a couple of turns, and I know it’d be impossible if they had their own unique personalities, so if I do this project they’ll all be like the Blinky or Clyde.
I can only give you this code for now (if it doesn’t work, let me know):
Summary
{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-540,“y”:-192,“group”:“d8ae29355bf64241”,“id”:“d3ba97151eed5c44”,“startVal”:3,“tag”:“Go”},{“inputCount”:3,“outputCount”:1,“name”:“Number”,“behaviorType”:“logic.logic.Value”,“x”:-540,“y”:-96,“group”:“d8ae29355bf64241”,“id”:“d3ba9715987ef246”,“startVal”:0,“tag”:“Stop”},{“inputCount”:2,“outputCount”:0,“name”:“AngleToVelocity”,“behaviorType”:“logic.NodeGroup”,“x”:-360,“y”:-192,“group”:“d8ae29355bf64241”,“id”:“d3ba971625950d43”,“isMenuItem”:false},{“expression”:“BMath.cos(A(Math.PI/180))”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:2,“version”:2,“tag”:“Cos”,“inputCount”:3,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:720,“y”:640,“group”:“d3ba971625950d43”,“id”:“d3ba971f18882b4e”},{“expression”:“BMath.sin(A(Math.PI/180))”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:2,“version”:2,“tag”:“Sin”,“inputCount”:3,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:720,“y”:768,“group”:“d3ba971625950d43”,“id”:“d3ba972208bb0c45”},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:360,“y”:640,“group”:“d3ba971625950d43”,“id”:“d3ba9722affa8440”,“portId”:“d3ba971625950d43i0”,“tag”:“Rot”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Bundle Input”,“behaviorType”:“logic.NodeGroupInput”,“x”:540,“y”:768,“group”:“d3ba971625950d43”,“id”:“d3ba97231c1a244e”,“portId”:“d3ba971625950d43i1”,“tag”:“Vel”,“dataType”:2},{“inputCount”:3,“outputCount”:3,“name”:“Velocity”,“behaviorType”:“logic.properties.Physics”,“x”:900,“y”:704,“group”:“d3ba971625950d43”,“id”:“d3ba9724d0f8ce4e”},{“expression”:“((A%360)+360)%360”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:1,“version”:2,“tag”:“Angle”,“inputCount”:2,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:540,“y”:640,“group”:“d3ba971625950d43”,“id”:“d3ba9725ae89b34c”},{“inputCount”:2,“outputCount”:1,“name”:“Logic Gate”,“behaviorType”:“logic.logic.Gate”,“x”:-720,“y”:-96,“group”:“d8ae29355bf64241”,“id”:“d3ba972639ec574c”,“gateType”:“NOR”},{“inputCount”:2,“outputCount”:2,“name”:“Proximity”,“behaviorType”:“logic.components.Prox2”,“x”:-900,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba97278c6d8b45”,“targetEntityId”:0,“threshold”:116,“targetClassId”:20265135,“nearestOnly”:false,“firstObject”:true,“allObjects”:false,“contains”:false,“shape”:0,“oX”:0,“oY”:0},{“inputCount”:0,“outputCount”:1,“name”:“Always”,“behaviorType”:“logic.triggers.Always”,“x”:-1080,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba9727a0402f40”},{“inputCount”:2,“outputCount”:1,“name”:“PointAt”,“behaviorType”:“logic.components.PointAt”,“x”:-540,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba972c57d61c47”,“skipRot”:true},{“expression”:“Math.cos(A*(Math.PI/180))”,“default0”:0,“default1”:0,“default2”:0,“default3”:0,“default4”:0,“default5”:0,“params”:1,“version”:2,“tag”:“Cos = Left or RIght”,“inputCount”:2,“outputCount”:1,“name”:“Expression”,“behaviorType”:“logic.logic.Expression”,“x”:-360,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba972c8f0f1c42”},{“gateVal”:0,“mode”:“less than”,“inputCount”:2,“outputCount”:2,“name”:“Filter”,“behaviorType”:“logic.logic.Filter”,“x”:-180,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba972d289c8c43”},{“inputCount”:3,“outputCount”:3,“name”:“Flip”,“behaviorType”:“logic.properties.Flip”,“x”:0,“y”:-288,“group”:“d8ae29355bf64241”,“id”:“d3ba972dd55a3745”,“globalAxis”:false}],“links”:[{“input_id”:“d3ba97151eed5c44i1”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba971625950d43i1”,“output_id”:“d3ba97151eed5c44o0”},{“input_id”:“d3ba9715987ef246i1”,“output_id”:“d3ba972639ec574co0”},{“input_id”:“d3ba971625950d43i1”,“output_id”:“d3ba9715987ef246o0”},{“input_id”:“d3ba971625950d43i0”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba971625950d43i1”,“output_id”:“d3ba97151eed5c44o0”},{“input_id”:“d3ba971625950d43i1”,“output_id”:“d3ba9715987ef246o0”},{“input_id”:“d3ba972639ec574ci0”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba9715987ef246i1”,“output_id”:“d3ba972639ec574co0”},{“input_id”:“d3ba97278c6d8b45i1”,“output_id”:“d3ba9727a0402f40o0”},{“input_id”:“d3ba972c57d61c47i0”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba97151eed5c44i1”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba972639ec574ci0”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba972c57d61c47i1”,“output_id”:“d3ba97278c6d8b45o1”},{“input_id”:“d3ba97278c6d8b45i1”,“output_id”:“d3ba9727a0402f40o0”},{“input_id”:“d3ba972c57d61c47i0”,“output_id”:“d3ba97278c6d8b45o0”},{“input_id”:“d3ba972c57d61c47i1”,“output_id”:“d3ba97278c6d8b45o1”},{“input_id”:“d3ba972c8f0f1c42i0”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba972c8f0f1c42i1”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba971625950d43i0”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba972c8f0f1c42i0”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba972c8f0f1c42i1”,“output_id”:“d3ba972c57d61c47o0”},{“input_id”:“d3ba972d289c8c43i0”,“output_id”:“d3ba972c8f0f1c42o0”},{“input_id”:“d3ba972d289c8c43i0”,“output_id”:“d3ba972c8f0f1c42o0”},{“input_id”:“d3ba972dd55a3745i1”,“output_id”:“d3ba972d289c8c43o0”},{“input_id”:“d3ba972dd55a3745i0”,“output_id”:“d3ba972d289c8c43o1”},{“input_id”:“d3ba972dd55a3745i0”,“output_id”:“d3ba972d289c8c43o1”},{“input_id”:“d3ba972dd55a3745i1”,“output_id”:“d3ba972d289c8c43o0”},{“input_id”:“d3ba9724d0f8ce4ei0”,“output_id”:“d3ba971f18882b4eo0”},{“input_id”:“d3ba9724d0f8ce4ei1”,“output_id”:“d3ba972208bb0c45o0”},{“input_id”:“d3ba9725ae89b34ci0”,“output_id”:“d3ba9722affa8440o0”},{“input_id”:“d3ba9725ae89b34ci1”,“output_id”:“d3ba9722affa8440o0”},{“input_id”:“d3ba971f18882b4ei1”,“output_id”:“d3ba97231c1a244eo0”},{“input_id”:“d3ba971f18882b4ei2”,“output_id”:“d3ba97231c1a244eo0”},{“input_id”:“d3ba972208bb0c45i1”,“output_id”:“d3ba97231c1a244eo0”},{“input_id”:“d3ba972208bb0c45i2”,“output_id”:“d3ba97231c1a244eo0”},{“input_id”:“d3ba971f18882b4ei0”,“output_id”:“d3ba9725ae89b34co0”},{“input_id”:“d3ba972208bb0c45i0”,“output_id”:“d3ba9725ae89b34co0”}]}}}
Wait, is this one of your alt’s, and also I tried to copy and paste it and it didn’t work, but if you make it into a demo, then I’m sure it’ll work
I have one if you need it (it’s for top-down games)
Coofin, I don’t see the code in your game.
Hi, sorry yeah I got caught up in a bunch of other stuff yesterday.
I don’t know who Endermanjeff is (it’s not an alt account of mine, it’s just someone else)
But I can definitely try and help you out today or tomorrow with a pac-man style pathfinding system (I have a prototype here, though it’s buggy 90 Degree Follow / "Pathfinding" / Player Follow / Enemy Chase AI (No Enemy Rotate) - Flowlab Game Creator)
The eye bats. (also its mid because I just made that for a school thing so I could be on flowlab)
Oh, yeah, but it is a nice concept game
It’s okay. ever since I reignited the project, I’ve been slightly working on the game, and have had this post open 24/7, and constantly checking on it, so I can easily see if someone has posted.
Hey thebrickccentric, i added Maze of Cheese in the CheeseyFryMan Games.