![]() ![]() Sorry for the false alarm but I still hope we can get the list of pet’s methods. teacher.tekmonk October 22, 2023, 1:34pm 1. If our glasses doesn’t have findNearestItem/findNearestEnemy, than the pet can’t use it too, am I correct?Įdit: I reload the level and it works with the default code (pet.findNearestByType). In the previous levels I think it depends on our glasses. Var soldier = pet.findNearest(hero.findByType("soldier")) Īlso, it would be helpful if we can get the list of methods our pet can do. var player game.spawnPlayerXY(captain, 40, 34) player.maxSpeed 25 // Chests of gems are the most valuable items. ![]() ![]() Count collected item values and use them for scoring. var archer = pet.findNearest(hero.findByType("archer")) I can do it for you this time but first you should click the button then paste your code. After that doesn’t work, I switch to hero.findByType. Watch for flags that may appear signaling certain events.','','while True:',' if hero. I’m not sure if pet also has findByType method. Var soldier = pet.findNearest(pet.findByType("soldier")) Pet should find the health potion (type is 'potion'): potion pet.findNearestByType('potion') and fetch it: pet.fetch(potion) Pet should find the gold key (type is 'gold-key'): item pet.findNearestByType. Var soldier = pet.findNearestByType("soldier") īut the pet doesn’t seem to recognize this method (findNearestByType)? So I changed it to: var archer = pet.findNearest(pet.findByType("archer")) I don’t know what is wrong with my code, I am on the level Mushroom Noise in the desert. 35: 512: SeptemNeed help on Friend and Foe. 55: 548: SeptemHunting party, I am hunting for answers Level Help. In the default code, I have: var archer = pet.findNearestByType("archer") CodeCombat Discourse Computer Science 3- Air rescue service. It won’t go left or right, even after I use pet.moveXY. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |