farkmt2official 1
farkmt2official
BlackFullMoon 1
BlackFullMoon
mavzermete 1
mavzermete
Bvural41 1
Bvural41
Hikaye Ekle

Camera Movement System - Rendered Select & Create

  • Konuyu başlatan Konuyu başlatan haliyasictim
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 36
  • Görüntüleme Görüntüleme 9K
I'm not perfect coder but you can try

Find def LoadMap(self): and replace

Kod:
    def LoadMap(self):
        background.Initialize()
        for i in xrange(self.SLOT_COUNT):
            id = net.GetAccountCharacterSlotDataInteger(i, net.ACCOUNT_CHARACTER_SLOT_ID)
            if id == 0:
                GetObject=self.dlgBoard.GetChild
                self.backGroundImg1 = GetObject("BackGround")
                self.backGroundImg1.Show()
            else:
                self.backGroundImg1.Hide()
                MAPS_LIST = [
                    {"x": 30000, "y": 40000, "map_name": "metin2_map_a1"},
                    {"x": 12300, "y": 32100, "map_name": "metin2_map_n_desert_01"},
                    {"x": 78300, "y": 84400, "map_name": "map_a2"},
                    {"x": 78000, "y": 62000, "map_name": "map_n_snowm_01"},
                    {"x": 86100, "y": 55600, "map_name": "metin2_map_b1"},
                    {"x": 35600, "y": 50200, "map_name": "metin2_map_c1"},
                ]
                map_random = MAPS_LIST[app.GetRandom(0,len(MAPS_LIST)-1)]
                background.LoadMap(map_random["map_name"], map_random["x"], map_random["y"], 0)
                background.SetShadowLevel(background.SHADOW_ALL)
                chr.SelectInstance(self.slot)
                player.SetMainCharacterIndex(self.slot)
                chr.SetPixelPosition(map_random["x"], map_random["y"])


And find

Kod:
            self.CharacterSlot_2_Name.SetFontColor(0.8549, 0.8549, 0.8549)
            self.CharacterSlot_3_Name.SetFontColor(0.8549, 0.8549, 0.8549)
      
        self.slot = index

        self.LoadMap()
        self.isCameraMoving = True
        self.cameraMovementProgress = 0.0

Replace

Kod:
            self.CharacterSlot_2_Name.SetFontColor(0.8549, 0.8549, 0.8549)
            self.CharacterSlot_3_Name.SetFontColor(0.8549, 0.8549, 0.8549)
      
        self.slot = index

        self.LoadMap()
        if self.__AreAllSlotEmpty():
            self.isCameraMoving = False
        else:
            self.isCameraMoving = True
            self.cameraMovementProgress = 0.0
unfortunately this solution not work, but thank you for try to help
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst