I think the problem is youâre checking if Angie is moving, which is part of the TopDownMovement behaviour, but youâre moving Angie using the pathfinding.
As Angie is not getting moved by the TopDownMovement behaviour, it wonât be registering Angie as moving. Instead, you could check Angieâs speed using the pathfinding function Speed, and if itâs more than 0 then Angie is moving.
Also, if youâre moving Angie with pathfinding, to get Angieâs angle along the path youâll have to use Angie.Angle().
Thanks! I deleted the topdown condition âAngie is movingâ, and added the event at the bottom. What should be the action for this new condition? By the way, the enemy AI is still just doing her idle, but I am feeling like I could live with that, especially with the difficulties that arise when I try to rotate an isometric character.
Also, I have all the playable characters shooting now, but with two problems. 1. I made my first try at pointing the playable character at the enemy, but they flop around like this. The idle on the playable characters, by the way, has them facing away from the camera, toward the general direction of the enemy. 2. The sound effects for the shooting all play at once when I have the selected character shooting. How do I only have the shooting sound for the current character play? Do I need a variable?
With this code, youâll be creating 4 bullets, 3 at 0,0 (because the 3 of the player characters donât exist and itâs the default co-ordinate GDevelop uses) and the last bullet at the character point Firing.
You need to have one âSpace key is pressedâ condition, and then a series of subconditions that check the Character.ObjectName() and act accordingly.
You need to go through your events, like GDevelop would, and workl out what itâs doing. And read not what you want it to do, but what it is doing.
This is a condition, that says âIs Angieâs angle = Angieâs angle?â. Itâll always be true.
Iâd seriously recommend you park this project, and work on a series of smaller projects that help you to understand how GDevelop works. The help youâve been asking for in the forums generally involves some rudimentary GDevelop functionality. Like all bullet sounds playing at once, like NPC moving in synch with the player etc, I get the feeling with this project youâve bitten off more than you can chew. Take smaller bites, and work up to the main project.
Hereâs the irony of the situation. When I first picked up GDevelop, of all the crazy things, an idea popped into my head for an adult game. Believe me, my goal is not to be a pornographer,
but my forte is making beautiful 3D female characters, and I was certain I could create a 3-playable-level game of this concept, and also that by just changing the character, I could easily make infinite versions of the game. That was going to be my practice, so that I could then make my real, epic sci fi game. And I made the game without any real difficulties. I modified the platformer format into a âshooting galleryâ, basically a first person shooter with a static firing point, and an AI enemy running back and forth on a platform as the âtargetâ. I call it âThe Perv Gameâ LOL. But I just made it for laughs and practice. Where could I even post an adult game? So thatâs why I was overconfident coming into my real game. Unfortunately, though your advice makes perfect sense, I am old, laid off from work due to the fake pandemic, and I feel like if I donât do this now, it is never going to happen. I am an artist, animator, and musician. My goal has never been to become a developer, just to complete my sci fi game. So Iâll attempt to finish it in whatever form I am able, and build it as a very basic first version/work in progress. And again, thanks much for your help. I am assuming that the condition above is where I need to slot different numbers between the parenthesis to try out different angles, so Iâll grab some more tutorials and proceed from there.
Thanks very much! I had never heard of this site.
For anyone who is interested, Gamejolt is an excellent site for posting games in general. They are pretty strict on maturity level stuff, however, and put a mature filter over my sci fi game, because it has a little (female android) artistic nudity. If anyone is making an actual âadultâ game, though you could technically post it on Gamejolt, it would be out of place. The best site for posting such games is F95Zone.
The series of subconditions are functions? When I do it like this, only the event works. The subevents do not occur. I realize that the selected playable character cannot fire the beam as well as her own specific projectile, but I donât know what to put here. I have watched many tutorials, but cannot find one that deals with this.
Youâre missing the â()â from most of the ObjectName references - you have it for Kirsti, but not the others.
Also, check you are comparing strings, and not numbers. Youâll have to double click on the event condition to see which one it is. Make sure the expression has no red to it in the editor.
Thanks, I put in the two missing sets of"()"'s. I also checked inside the conditions, and they are all comparing strings. At some point, I have to get rid of that action at the top,because it is redundant, correct? At this time though, it is the only reason the characters are able to shoot. When I delete that action, the characters dont shoot at all. Eventually, when the subevents are functioning, I should have nothing there, right? So the functions and their actions look OK? Each character has Topdown Movement and Fire Bullet behaviors on them.
I just noticed this, you have Character.ObjectName(). Itâs Characters, with an âsâ on the end. When creating the events conditions and actions, itâs best to start typing in an object name, and then selecting it from the list. Then you know youâve got it right.
Thanks, that was the problem! Thatâs what I mean when I say I am very right-brained, all creativity and not a lot of logic. It was my first time using functions, and for some reason I thought the âCharacterâ in the functions was something separate from the group âCharactersâ. Anyway, now I can move on, and at least complete a basic version of this game. I think I am starting to understand what Silverstreak meant when he said I am going into new territory. In iClone, when I made the animations, I tilted all the characters so that they would match the perceived angle in the isometric background. In all the tutorials Iâve viewed, I havenât seen anyone doing this, and it creates challenges that arenât present in a straight topdown game.
Hey Mr. Men!
I am currently experimenting with my playable characters firing projectiles while moving in different directions, as you basically advised me to a while back. Iâve only added one subevent so far (for walking right) to attempt to match the projectile angle to the player angle. As I substitute different angles, I am getting some strange results. Iâll keep on using trial and error, to see what happens, but I was wondering if you might have some further guidance. Also, when Kristi moves up/left, she doesnât fire at all for some reason. Events and video attached. Also, I think it is inevitable that my game is going to have loading pauses, even with everything optimized. Is it possible to have a loading graphic like in the old school games 20 years ago? Video
Youâre using 2 different types of forces - one with using x & y components, the other using angle and length. I suggest you use force angle - itâs simple enough as you have only 8 directions of movement. and theyâll be multiples of 45. 0 degrees is directly to the right, and angles increase in a clockwise direction (and conversely, decrease in the anti-clockwise direction). Itâll also make it easier to change the angle of the beam (and the other characterâs projectiles too).
My code change suggestions further down are on the assumption that:
there is one idle animation sequence, and itâs the first animation for each character
the character move animations in rotational order, so the first one is to the right, second down right, third is down and so on. This is important as it makes the code so, so much simpler.
the character move animations start as the second animation for each character (first one is idle).
the Beam image (and this goes for all the projectiles), is horizontal and facing to the right. Itâs all to do with GDevelop having the angle 0 being to the right, and not up the screen.
Once the animations in the right order, make the following changes :
remove the right key pressed subevent. It wonât be needed as we can determine the angle based on the characterâs animation number.
in the second event (the one that checks if character name is Kirsti), change the force action to an âAdd force (angle)â action, with angle (Characters.Animation()-1) * 45 and length 100
modify the action to change the beam angle to use the angle (Characters.Animation()-1) * 45
Thanks much for the extensive instructions! Iâve only done Kristi so far (itâs a bit of an undertaking). I followed the directions to the best of my GDevelop ability (I know thatâs not saying much! LOL). Of course, I didnât have the animations in anywhere near the correct order. Also, whenever I bring in an animation, there are always some idle frames at the end that have to be determined in Piskel and removed, so redoing all those was probably the most time consuming part, then I redid the key press events to match the new animation order. I think there is only one problem with the result: the beam is generated but it doesnât move. Do I need another force? Youâll probably also notice, in the video, that Kristi canât shoot when sheâs moving in the left/up direction. I just get a beep, like an error sound. It has been like that the whole time, and I have no idea why she canât fire when moving in that one direction.
Ah, thank you! Sheâs shooting close to how I want her to now, when walking forward or right. Thatâs half the battle, since those are the directions facing the enemy. Any idea why the beams go diagonal when sheâs idling?
Hello MrMen!
Thanks for the latest help, but I tried adding those 2 subevents and it seemed to be worse (beams turned sideways, etc.) so I reverted back to the playable character firing diagonally. Anyway, I had said I was going to try building the game as soon as the playable character could shoot the enemy, and itâs already at that stage. So I built it, and Iâm glad I did, because the playable character keeps disappearing! She can still shoot, but becomes invisible for several seconds. Maybe I can incorporate it into the game as her âcloakingâ ability! LOL Could you possibly play it, to make sure this isnât just happening on my computer? Iâm thinking I may have to optimize her sprites more. Build