Help someone new to GameSalad with spawning actors

2»

Comments

  • FrimanFriman Member Posts: 55
    @tatiang
    The enemy object still spawns outside of the game "boundaries" and I made the changes you're showing in the current version.
    You can still see the enemy objects but you can reach them, which is a problem.
    I will add the current project below.

    Thanks!

    https://www.dropbox.com/s/vok1k7dh53xwb17/Project_Re_imagination_3-1.0.zip
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I would reduce it to under those numbers by half the length/width whichever is greater. Remember GS calculates location of an actor off it's center so if 480 is max on the screen size if you actor is say 100pixels half of it will be off the screen when it spawns at 480. So give yourself some play there so if it was me I'd set it to ran(50,430) on X and ran(50,270) Y.

    I don't mean this as an offense, but this is pretty basic stuff with game development with GS. If the company your pitching to is going to take over development then that's one thing but if you're gong to develop it, you're not ready for a development deal.
  • FrimanFriman Member Posts: 55
    @NovicaStudio Thanks!
  • NovicaStudioNovicaStudio Member Posts: 174
    @Friman Glad I could help, thank Stormy for that last one though, it helped me too :D
  • FrimanFriman Member Posts: 55
    @FryingBaconStudio
    I started learning GS last week and I don't know everything in GS either.
    But don't worry no offense is taken.
  • FrimanFriman Member Posts: 55
    @NovicaStudio
    Oh, could you take a quick look at the project again? the enemies is spawning on the border of the scene making it impossible for you to destroy them.
    Once again Thanks!

    https://www.dropbox.com/s/vok1k7dh53xwb17/Project_Re_imagination_3-1.0.zip
  • SocksSocks London, UK.Member Posts: 12,822
    . . . . the enemies is spawning on the border of the scene making it impossible for you to destroy them. . . .
    I gave you the answer earlier . . . .
    . . . . just make the X value random(0,480).
  • NovicaStudioNovicaStudio Member Posts: 174
    @NovicaStudio
    Oh, could you take a quick look at the project again? the enemies is spawning on the border of the scene making it impossible for you to destroy them.
    Once again Thanks!

    https://www.dropbox.com/s/vok1k7dh53xwb17/Project_Re_imagination_3-1.0.zip
    I think what your problem is is the same as mine every once and a while: sometimes gamesalad clears the numbers on my positoin, so just go back to what Socks said and change it to the correct position.
  • SocksSocks London, UK.Member Posts: 12,822
    . . . . also if you want to keep the enemies away from spawning too close to the sides then simply move your values in a little . . .

    So try something like random (20,460)

  • FrimanFriman Member Posts: 55
    @Socks @NovicaStudio
    and my problem is still the same.
    I have tried to change everything on x if it dosen't spawn under the player object then it spawns to often to the right and in the end it's on the border of the scene.

    I'm sorry if I'm annoying you with obvious question but I have tried to solve this for 3 days straight and I still haven't find a proper.
    That's why I'm turning to you who have more experience in Game Salad than I do.

    Thanks
  • SocksSocks London, UK.Member Posts: 12,822
    @Friman

    My suggestion above works just fine, why not give it a try ?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    [merged the two threads]
  • lewisonelewisone Member Posts: 48
    Yeah, that Game Arcade thingie I can never get to work. I usually just start over in the new format. To make it easier I have two windows open, one of the original one and one of my new format one, then copy the code over changing all the math to make it work. Tons of work but well worth the troubleshooting in my opinion.
  • FrimanFriman Member Posts: 55
    @Socks
    I've tried your suggestion in the spawner actor and for some reason it just dosen't work.
    I don't really know what I'm doing wrong, maybe I'm doing the code wrong, if it dosen't spawn under the player object or it dosen't spawn at all.
  • SocksSocks London, UK.Member Posts: 12,822
    edited June 2013
    @Socks
    I've tried your suggestion in the spawner actor and for some reason it just dosen't work.
    @Friman

    Can you upload your project (the one where you try my suggestion) so we can take a look ?
Sign In or Register to comment.