multiple bullets in the DIRECT center of the actor

digitalzerodigitalzero Member, BASIC Posts: 639

okay so now i have a picture to show you guys exactly what im talking about... i have bullets on this scene that will hit the pineapple... normally i would make a collide behavior... for instance if it collides with bullets change attribute self.hitpoints to blah blah blah.... NOWWWW what my issue is is that my image is bigger than i want it to be... so i want it to go straight in the middle... why is the image bigger you might ask? well, because it has an animation behavior with it and i figured it would be easier to keep everything the same size... instead of changing self.size and all that jazz... i know about constraining an actor to it and whatnot but i am going to have many actors of the same type and many bullets... here is a picture to get you all to understand where im coming from

Image and video hosting by TinyPic

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @digitalzero said:
    i know about constraining an actor to it and whatnot

    Good, then just use a table instead of attributes to bind each small target actor to its corresponding parent actor.

  • digitalzerodigitalzero Member, BASIC Posts: 639

    ohhhhhhhh @hopscotch tell me more! i have no idea how to constrain using tables... i kinda suck at that kinda thing

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @digitalzero, how are your actors spawned? Or are the on the scene when the level starts?

  • digitalzerodigitalzero Member, BASIC Posts: 639

    @hopscotch video tutorial possibly?

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @digitalzero, tell me how your scene is set up. Set amount of actors, or are they spawned? Then I can make a sample.

  • digitalzerodigitalzero Member, BASIC Posts: 639

    well my actors are all on the scene... since its a side scroller and its going to have different levels they are going to be set on there differently depending upon the scene... for instance... i will have about 6 worlds but within each world there will be 7 stages and a final boss per stage... so im going to hand place them in each scene

  • digitalzerodigitalzero Member, BASIC Posts: 639

    @hopscotch thanks so much for helping me out with this by the way

  • digitalzerodigitalzero Member, BASIC Posts: 639

    i should additionally add this... some actors will move back and fourth and some will jump and some may attach to you sucking energy out of you ect... so each enemy will have its properties

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @digitalzero, ok, makes it simple, I will throw something together.

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @digitalzero‌, here you go.

    Drag Enemy actors onto the scene, double click each instance and give it a unique ID value.

    Project attached

  • digitalzerodigitalzero Member, BASIC Posts: 639

    OMG THIS LOOKS LIKE ITS TOTALLY WHAT I NEED... do you mind if i come to you with any questions that i have regarding this? PLEASE PLEASE PLEASE!!! LOL

  • HopscotchHopscotch Member, PRO Posts: 2,782

    Sure @digitalzero. :)

Sign In or Register to comment.