Flash_G Posted December 15, 2014 Report Share Posted December 15, 2014 (edited) Hello, I am kind of new to this and I could use some help with my project. Currently, I am working on my Sonic fan game using the latest Sonic Worlds engine. I learned how to use this engine mostly through trial and error but i think for the most part, I understand how the engine works. However, I ran into a problem. I am trying to create a spinning helix that wraps around Sonic as he moves. What i want the helix to do is: 1. Wrap around Sonic like he is inside the helix . 2. Change the helix's angle as Sonic changes his angle. www.youtube.com/watch?v=sPFMPuHMoO0&list=UUm1_X6ow_XmpABWGiHjlj As you can see, It is a makeshift helix animation I am using here. The part that bothers me is how the helix animation cuts Sonic in half at times. As for my second issue, I don't know where to start on this one. I'm thinking if I make a condition that gets the animation to match sonic's angles it should work but this animation is for when Sonic's in the air. Help with this is important for my progress and any suggestions are welcome. Edited December 15, 2014 by Flash_G Link to comment Share on other sites More sharing options...
Mr Lange Posted December 15, 2014 Report Share Posted December 15, 2014 (edited) I'm trying to understand exactly what you're asking. It sounds like you're trying to create some kind of shield effect. So, it would be a sprite that follows Sonic's position and angle. That's easy. This effect would be much more difficult with some kind of procedurally generated helix, but you could always make a prerendered sprite. That part is on you. Tracking Sonic's position is easy; just add some code for the helix object that sets its X and Y positions to the X and Y position of the player object, the green circle called Player. Angle is trickier because there's multiple angle variables in the Worlds engine. The one you want specifically is the AnimationAngle in Player_Others. In code, this would be: AnimationAngle( "Player_Others" ) Simply set the angle of the helix object to this variable. Edited December 15, 2014 by Mr Lange Link to comment Share on other sites More sharing options...
DimensionWarped Posted December 15, 2014 Report Share Posted December 15, 2014 Can you draw a picture demonstrating what you are wanting, or if it's based on something already in the main games, just post a screenshot of what it is you are trying to replicate? Link to comment Share on other sites More sharing options...
Flash_G Posted December 15, 2014 Author Report Share Posted December 15, 2014 (edited) Can you draw a picture demonstrating what you are wanting, or if it's based on something already in the main games, just post a screenshot of what it is you are trying to replicate? I was trying to embed a youtube video to show what i did but i cant do it for some reason. So here is the link to the video. http://www.youtube.com/watch?v=sPFMPuHMoO0&list=UUm1_X6ow_XmpABWGiHjljoA Now this effect is meant for when he's flying around in the air. the problem is having the animation follow the same angles that sonic is going in. Edited December 15, 2014 by Flash_G Link to comment Share on other sites More sharing options...
Mr Lange Posted December 15, 2014 Report Share Posted December 15, 2014 (edited) Edited December 15, 2014 by Mr Lange Link to comment Share on other sites More sharing options...
Flash_G Posted December 15, 2014 Author Report Share Posted December 15, 2014 My Bad. the video is off private now Link to comment Share on other sites More sharing options...
Mr Lange Posted December 15, 2014 Report Share Posted December 15, 2014 Okay, this appears to be what I thought you were asking. Read my post above and try that. Link to comment Share on other sites More sharing options...
Recommended Posts