Jump to content

F.hao

Registered User
  • Content Count

    84
  • Joined

  • Last visited

Posts posted by F.hao


  1. 12 minutes ago, IEuphe said:

    Question, where do you put these zip files? I'd like to have a look to see how you get entities to follow you so i can expand my scripting knowledge. 

    Hi IEuphe ,Unzip it, put it into the file of your yland installed.the last file place is :\rail_user_data\2001099\17293822637842182107\cloud_storage\files\Compositions

    Put the ycomp into the compositions file. and check it at yourself Component label in the game. Click it and put it in your scene.


  2. 9 minutes ago, Oliver Hope said:

    Hmmm, I assumed you could but I just checked now and you are correct, it is not possible ?
    my solution will not work then?

    ? Hahahaha, But from this way to control the rotate is very smooth, i can use it at the pet function. Because player can only get one Pet.? 


  3. 30 minutes ago, Oliver Hope said:

    @F.hao It should be possible to modify this second solution to be able to spawn as many as you need (like your original ycomp). (I thought you could how it is as I sent it, but now you said stuff that reminds me you can't). to modify it, You can spawn a separate entity reference point and rotation animator for each demon ball. 

    If you are going to have many balls I recommend using an entity storage game logic to keep all the instructions and variables for the demon balls in. Let me know if I can help further

    Hi Oliver, how can i spawn a separate rotation animator? I try it, but the rotation animator can't be choose by logic template(I can spawn a reference point by this way). Did i misunderstand your means?


  4. 4 hours ago, Mello1223 said:

    as all scripters know , there are many ways to do this. here is just one of them which seemed to me to be the simplest .. it is not completely ideal, but it will guide you in the direction in which you can further develop the script.
    if you need help, I'll be happy to do it, but I'd need more information, such as whether it will be used for multiplayer or singleplayer...

    DEMON FOLOWING.zip

    Oh my god, you guys so cool! @Oliver Hope @Mello1223

    Hey, Mello, i get your ycomp and ran it. It's cool, rotate good. It's cost my little to understand how the loop work. It seem like you figure the last rotate angle for wings, then let them rotate to there, then keep do it. I think it's a good way to made this, and in this loop, maybe i can add some code to let the demon ball up and down when it follow me at the same time .

    And hi Oliver @Oliver Hope, i ran your ycomp too. And i think i know the way you made it. By setting a point to the rotate animation , at the same time move the point with player.Yes this way made the rotate so smooth. But like you say, if i need more demon balls, i must prepare it before i use it.

    --------So i think i'm to rush too post my problem with less explain, in fact for now, i'm trying to make a rogue-like game. First here will have 1-4 player at world, most 4.at least 1. Then , there must have many monster like demon ball. Of course, not every type got left arm and right arm. But for a demon ball. maybe there will appear 8 numbers(if there have 4 player, number is 4*8=32).That means i need spawns many entity(I do it at game start. and i don't destroy just hide them).  you know, i must consider the game performance, like Fps. 

    So Oliver, i think i can assign many reference point to every monster in the unique rotate animation. But the total number of monster maybe 600. It will cost so many hand work?, and not easy to manger.

    And Mello. seems the way your provide is good for this monster. I just need write few type animation for monster, and just call the function, and i hope the Fps not so low when there are many monsters.

    Or maybe there got other suitable ways to mange many monster follow&rotate? Whatever, thanks you both very much?.

    • Like 1

  5. Hello guys,  how are you all, hope you'll have a good mood. And, this time i have a new problem. It's really funny and made me insane.

    Have a look the video, here i have a demon ball, it contains three entity, the body(ball),the left wing, and right wing.

    I hope it can follow me and aim me. And, in the same time, the double wings can fly(i set rotate animation to them).

    For now, you guys can see it in the video, the wings is flying ,but when the ball aim me, it's direction is changing,  and the double wings still keep the original direction. Well, that's not what i want. 

    And i don't how to make the double wings keep fly and aim me to. Well, just fly like a normal creature who has wings.?

    I upload my ycomp file, hope it can help some. Can someone help me find a way to made it?

    TESTDAMENBALL.zip


  6. Hi there, Here i found a strange things about  visibility of Trigger Zone.

    00.png.870ea58e4e3313cd3947abc48c64a5af.png27.png.d6c8ed3c20232475c744228fa4e2ffb0.png

    Here i put two trigger zone, one is black ,it's small. and i put it in the Big Red one. All of them's alpha is 255.

    The problem is when i change my view(just move mouse), and the black was disappear, but keep going to move mouse, the black appear again.

    So, dose this is a bug  or it's just like this? I think the black one should never be watched, right?

     

    • Upvote 1

  7. Oh, thank you Mello. So this tile is returns a Interpolation between two rotation. Yeah, still don't know the behind principle?.

    For now. i can control camera rotate on X axis by mouse,with second Vertical input. But when i try the same way to control rotate on Y axis, with second horizontal, it's just can't work. the rotation angle on Y axis never change over 5 degree even hard move my mouse, and i don't why.

    Whatever. does next Monday is tomorrow? Thank you again.

     


  8. Hi guys, i'm trying set Controller camera, trying aim somewhere by mouse(by the second Horizontal input, but it's not work well), i've been learned from Naru,but i think i don't know this code:

    image.png.5569d613c24d75ce30f17c9d36553b2e.png

    https://community.bistudio.com/wiki/Ylands:Tile_-_YVector3_-_Slerp_Rotation

    Can someone tell me anything about this code? I really don't understand how this code work ways. But i can feel,this is some difficulty things?. Well, just trying to figure it.


  9. On 7/22/2021 at 6:59 PM, spiritchaser28 said:

    Is the map a Legacy Exploration map? I seem to have the same issue with exiting them. Shows it is saving but the game does not exit to main screen and I have to hard close it with task manager. I only use the legacy maps for making blueprints from editor. ...however I can load the game directly from editor.

    Maybe you can check your script, is there have some empty holes? Even you never call this function.


  10. 1 hour ago, spiritchaser28 said:

    Is the map a Legacy Exploration map? I seem to have the same issue with exiting them. Shows it is saving but the game does not exit to main screen and I have to hard close it with task manager. I only use the legacy maps for making blueprints from editor. ...however I can load the game directly from editor.

    My game, it's just a empty world,also no blueprint items.And I‘m sure the problem is nothing with map's type.

    I think maybe after update, some welditem was going wrong, but there is so many weld item, i'm crying... Hope some smart ways.....


  11. I have create a game with editor when 1.6 version. and it's running good, but when i update to 1.7. The game can't running, whatever press F9 or F10. 

    And there is no any any any information show to me. The editor just no any response.(I can run another game.)

    I have save all components, and new a map, put them in.  but still can't running it. And i can't save the game. once i try to save. the console show me saving....and then it never show finished. 

    I hope to know what could i do for check what happen with my game? How can i find the problem? how can i running it again?

    Really need help, thanks~ If you need my yca. i will send it.

     

    • Upvote 1

  12. 12 hours ago, ocnoglittle said:

    I know you were asking Naru, but I think I know the answer. He went over the Custom Controller game logic at the end of the second Q&A. Please ignore Mello giving him a hard time about it being complicated ?

    You can see a bit of the final game he made with it:

    The main difference is that Custom Controller can be used in multiplayer maps. You can only control one entity at a time with the Custom Controller. Also, there is a secondary input, which is the mouse input.

    OK,thanks a lot. I'm waiting for it ?


  13. 11 minutes ago, Houp said:

    @F.hao : in the first For loop you need to create a new "row" in each iteration. In your case you have just created an array "A" which has 3 items which are all the same. You have there 3 times array "B" which has last set of numbers (20, 21, 22)

    Just put there "Local variable" inside the first loop. Then you will create totally 4 different arrays. (opposed to 2 arrays which you have in your example)

    wellllllllll,after google time, i think i understand.this reference address.thank you.

×