The Daily Click ::. Forums ::. Klik Coding Help ::. Slo-Mo Effect
 

Post Reply  Post Oekaki 
 

Posted By Message

Yami



Registered
  23/12/2003
Points
  608
9th September, 2008 at 17:36:36 -

Like Phanoo suggested, if you have a custom movement engine then you can make the speeds situational. What I would do is code two different speeds that go off when the other is on. To make it run even smoother I probably would make an animation on the main character when the speeds change to give the effect that it happened.

 
Image

JetpackLover



Registered
  01/03/2007
Points
  212
10th September, 2008 at 15:11:12 -

When you guys say "speed" is that like a combination of max x and max y? Only way I have found of slowing something down is to change the max x or y. if it isn't just max x max y what is "speed" exactly?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
10th September, 2008 at 16:20:13 -

Well, he's going to have to slow down animations and gravity too. As well as any particles and/or projectiles in the scene.

 

  		
  		

Yami



Registered
  23/12/2003
Points
  608
10th September, 2008 at 17:30:47 -

Yeah good point, you would have to have two animations of everything for each speed.

To DudeHuge, yeah when you make a custom engine you set the x and y values to whatever you want. For example say my normal walk is x < 3 or >3 if it's not your slow situation. Depending on if it's greater or less than just means which direction you'll move. Now say you want to slow it down. Figure out how you would want the speeds to change. Then make the same coding with your new slow situation included and bring the walk of 3 down to 1.

 
Image

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
11th September, 2008 at 18:04:28 -

Construct does it with one event

Well, it's pretty simple in MMF anyway.
1. Create a custom movement engine. Doesn't matter how much detail, as long as its custom.
2. All movements follow a counter, which follows every x seconds.
3. Just multiply x by the % speed you want

E.g.
2D platformer - objects move up or down every time Counter <= 0
At normal speed, counter subtracts by 10 every 0.5 seconds.
At double speed, counter subtracts by 20.
At half speed, counter subtracts by 5.

You could replace Counter with any alterable value if you want to make some objects move faster than others.

Or if that's too difficult, just use Construct

*Muz notes to code this system into his next game's engine

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
11th September, 2008 at 18:52:04 -

lol muz i thought you didnt like construct all that much? change of heart?

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
11th September, 2008 at 19:35:32 -

I don't like the bugs in Construct. It's good for making simple games look cool, though. Does a lot of special effects and timescaling with one click, so it's damn good for anyone who's doing that.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click