Is there a way to spawn the (Instanse) of an actor rather then the (Prototype) of it?

TRowe007TRowe007 Member Posts: 71
edited July 2014 in Working with GS (PC)

I've made changes on an actor that moves in the game, but I want to spawn that image as non-movable actor rather then creating a new actor with the same image.

Best Answers

  • Spalding004Spalding004 Posts: 89
    edited July 2014 Accepted Answer

    There is no way to spawn an unlocked instance of an actor. You can make it invisible until certain conditions are met, but anything you spawn using the spawn actor command will be the prototype.

    EX:
    WHEN: (your condition) is (true, a number, however you want to calculate it)

    THEN: self.graphics.Visible true

    ELSE: self.graphics.Visible false

    Edit: If that doesn't work, you can also do:

    WHEN: (your condition) is (true, a number, however you want to calculate it)

    THEN: self.color.Alpha = 1

    ELSE: self.color.Alpha = 0

  • camerondamancamerondaman Posts: 13
    Accepted Answer

    you should just make another actor
    dont even bother making it invisible haha

  • colandercolander Posts: 1,610
    Accepted Answer
  • Spalding004Spalding004 Posts: 89
    Accepted Answer

    @colander said:
    Visible can not be changed at runtime use alpha.

    Yep, hence my edit.

  • LumpAppsLumpApps Posts: 2,881
    Accepted Answer

    What I do in such a case
    Rule:
    when condition is true
    All the rules you want it to do
    Otherwise:
    change self.position.x to -self.width

Answers

Sign In or Register to comment.