Game Development Community

My Christmas Wish List

by Zilla · in Torque X 2D · 12/06/2007 (2:27 pm) · 4 replies

I know that I should not double post, but the following questions never got a single answer in the platformer forum and so my hope for Christmas is that this forum is much better attended:


Mounted Mountains
The background of my level is a tilemap.
I was mounting this tilemap on an existing and fully functioning scroller.
The scroller moves, but the tilemap doesn't.


Paint it white
I want to have a white background in the whole level.
I tried to add

base.GraphicsDeviceManager.GraphicsDevice.Clear(Color.White);

in the Draw() method. But either it doesn't paint the background white or the "foreground" is white, too.


Slide Animation
I was analyzing the completed PlatformerDemo level and didn't see how and where the slideAnimation (NOT the slidedownAnimation) and the slide_to_idleAnimation are used.

How can I trigger them in TXB that the player slides when it lands on a surface?

I know that I can apply the CollisionMaterial "SlipperySurface" to a platform, and the player slides over it but it will not do this with the slideAnimation. How can I do this?


Merry Christmas to everyone!

#1
12/06/2007 (2:33 pm)
@Zilla - What do you mean by "the scrollor moves, but the tilemap doesn't". Do you mean that the scroller object is moving around the scene with a velocity and the tilemap isn't following it? Or are you expecting the tilemap to have scroller functionality when it's mounted to a scroller?
#2
12/06/2007 (2:37 pm)
@Dan
The scroller moves/behaves how it should but the tilemap isn't following.

Quote:Or are you expecting the tilemap to have scroller functionality when it's mounted to a scroller?

Sorry, I don't understand this question...
#3
12/06/2007 (4:28 pm)
@Zilla: In a round about way he is saying that mount points on a scroller stay still even while the image in the scroller moves. Scroller's just don't scroll mounted objects.

For the clear color, check out torqueSettings.xml in the same directory as Game.cs There's a tag that sets the clear color. I think torque is trumping your call to .clear() with it's own.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<TorqueEngineSettings>
	<UseFixedTimeStep>true</UseFixedTimeStep>
	<EnableAudio>false</EnableAudio>
	<GraphicsClearSettings>
		<ClearColor valueOf="Microsoft.Xna.Framework.Graphics.Color.Black"/>
	</GraphicsClearSettings>
...

I'm not familiar with the platformer demo so i can't help much there.
#4
12/06/2007 (10:46 pm)
@Joshua A. Thomas
Thank you very much :-)))