Having Trouble with spawning enemies

0 favourites
  • 2 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 38 enemy ship sprites to be used in your game.
  • Hello, I am having some troubles in the Spawnsheet of this capx:


    I am trying to spawn an enemy using my SpawnPoint sprites in my Game Layout.

    Right now it loads the last entry in the NPCs.xml file, I want it to load the right NPC based on the "SpawnEnemy" variable on the SpawnPoint.

    So I have an entry in the NPCs.xml called Training Dummy. I want it to load the TrainingDummy sprite and then set the hp, name, and so on accordingly.

    Edit: What would be great, but doesn't work or atleast not that I know of, would be: Training Dummy < Set Name WHERE Node Name = SpawnPoint.SpawnEnemy

    Know what I mean?

    Is there a way to achieve this?


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I updated the capx, I am really close but still don't know how to do it, I have it so it loads based on the SpawnPoint.SpawnEnemy, right now it loads TrainingDummy1 on all spawn points.

    I tried adding another ForEach SpawnPoint overtop of the main foreach xml node however when I do that they all load TrainingDummy. The left 3 should load TrainingDummy1, and the right 3 should load TrainingDummy2.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)