need help with racing game

For questions about using Classic.

Post » Tue Nov 30, 2010 10:58 am

I am new to construct and am trying to make a racing game.I want that when i press 'left' the car should jump to the left position.I dont want it to move normally.when i tried to send it to x=-4 it jumped to that axis of the room.How can i make it jump to x -4 from the current pos?
B
2
G
2
Posts: 11
Reputation: 672

Post » Tue Nov 30, 2010 11:19 am

I think the usual method is to use a dummy sprite with multiple image points.
If you give the dummy the movement behavior, and have 2 different image points, you can have the car pick via variable which image point it should set position to.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Tue Nov 30, 2010 11:52 am

I am sorry but i just joined Construct and dont understand all that :(
B
2
G
2
Posts: 11
Reputation: 672

Post » Tue Nov 30, 2010 1:05 pm

No time to explain now, but here's a cap to play with.

[url:37ie5wwt]http://dl.dropbox.com/u/666516/laneimagpoint.cap[/url:37ie5wwt]
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Dec 01, 2010 10:43 am

I'm not sure if you mean this but just take the old car.x and add +4 to it?
Like this: set car.x= car.x+4

If you don't get what I mean just tell and I post a cap

Would be uber simple and so on
B
11
S
3
G
4
Posts: 622
Reputation: 3,186


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests