How to know the size of my opponent?

carlos.varela.comcarlos.varela.com Member Posts: 99
edited November -1 in Working with GS (Mac)
How can an actor know the size of their opponents? Imagine that I need to put an actor over it, but with the same size of the actor that I collide, the size of the opponents could be different and I need calculate for each cases.

Comments

  • chrisalchrisal Member Posts: 74
    I don,t understand what you are trying to do, but can't you just change image of the actor when you have collided with it???
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    It is not than simple in may case, ok. lets say you another idea: I am trying to simulate a hole over a platform, but the hole does exist yet, my actor run with different platforms, different sizes, and when it is collided with "something" a hole came behind him. well in order to simulate the new spawned hole over the current platform, I need the tall size of it, when the actor collide this new actor hole, it will fall down.
    This problem have many other uses, this is only another sample need.
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    Hey, give me some help, please.
  • ForteForte Member, PRO Posts: 297
    ok is this what you are thinking of?

    One actor is a certain size, and you want one type of actor to change its size to the other actors size?

    coz i know what you will want to do
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    think in how to simulate a hole over a platform, but the hole does exist yet, my "principal actor player" run over different platforms, with different sizes, and when it, "the principal player" collided with a "switch button", this button open a hole below him and when it cross the over the hole, then falling down.
    Well in order to simulate the hole, I overlap a new spawned "hole actor", a dark rectangle, over the current platform, but below the position of the "principal actor player", the problem is that I have very different platform with different sizes.
    And I need the tall size of each platform in order to make the new hole with the size of platform on where "the principal actor player" is.
Sign In or Register to comment.