spawning actors on miniMap?

allc1865allc1865 Member, PRO Posts: 777
Hey everyone! I have my miniMap set up, but I want to have it show all the energy stars that my player has to collect. Right now I just have one set up, but when I go to do another, it doesn't work. So I was wondering how to do it... Thanks for any help!

Best Answers

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Not enough information.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    Hello, @tatiang :) ;) I have coins that I want my character to pick up, but I want all the coins to be displayed on the miniMap. I was wondering what the best way was to do this?
    Thanks ;)

    image
  • allc1865allc1865 Member, PRO Posts: 777
    So far I only have one on there. Thanks ;)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    As you probably figured out, the way to create a mini map is to constrain the position of the smaller actors to their large map counterparts by way of a mathematical formula.

    Most likely, then you would have each larger coin spawn a smaller mini map coin at the correct location.

    What are you having trouble with?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    Thanks, @tatiang! I have figured it out! Thanks for the demo, though. It will help me learn ;) :)
    My game crashes, though. I think that's my main problem. I have all my coins in there, and when my character collides with the enemy, it crashes. Would you know why this is?
    Thanks again! :) :) The file size is 861 KB
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @allc1865 You're relatively new to GameSalad which is fine but we can't help you if you don't provide more information. Specifically, the best thing to post is always screenshots of your actors' rules. Next most useful is a written description of your rules as close as possible to what is displayed on the screen.

    So it's rarely effective to write "My main character disappears when I reach a door" or even "I have this rule that says when my monster is higher than a certain position, increase the acceleration." What we really need is the EXACT rule(s) in question. So, for example, you might write:

    When [attribute] self.Position.X >= 350
         Change Velocity [direction=90] [speed=game.theSpeed] [relative to: scene]

    I'm just pointing that out because you are frequently telling what is wrong without providing the necessary details for us to help you solve the problem.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    Okay. Sorry about that.
    My problem is that when my actor collides with the enemy, my project file game will crash.
    This didn't start until I added in the images for my coins; they started out as boxes, but when I added in my images, when I go to give it play test, if my actor collides with the enemy it'll crash. These enemies are spawned from different Y positions, by the way. ;)
    I have two enemy actors in the actors panel itself that are spawning. I have quite a few rules that would take up a few screenshot images, but if you still want images, I'll post them all. But basically the enemy actors have magnitude on them both...when the player gets a certain distance away from the enemy, they'll spawn. I also have 1 actor named cameraSnatch placed in my scene. I unlocked it and placed two constrain attributes in the actor that say: game.cameraX to scene.Camera.Origin.X
    the second one says:
    game.cameraY to scene.Camera.Origin.Y
    And like I wrote, my game file size is 860KB.

    If you need anything else, let me know! ;) :)
    Thanks!

  • allc1865allc1865 Member, PRO Posts: 777
    Okay. I just tested my game without any images (which includes me taking out my images in the image panel itself) and it still crashes when my actor player collides with anything, whether it be the enemy or the coin.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you'd like you can send me the project file (compress it as a .zip file, upload it to a file-sharing service such as Dropbox, and then PM me with the link or post it here) and I'll take a look. We still don't have enough details and there's likely a rule that's set up wrong.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.