Double Tap System

Post your Construct-made creations!

Post » Sat Feb 16, 2008 3:54 am

it's may not be much but it will help those who don't know how to achieve this.

http://www.mediafire.com/?51jzgemxm8t

It's also documented and all that jazz.

edit:

Vrav's version using sub events as well as eliminating the use of detectors for collision detection. it may seem trivial but when games become larger eliminating certain things can provide you with the virtual resources you require!

http://www.mediafire.com/?6lgnlltt21j
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Sun Feb 17, 2008 1:00 am

The tap is a little too fast (hitting the keys) but good of you to help people out :)
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Sun Feb 17, 2008 3:20 am

oh, that can be changed by altering the value used for the "runTimer" from 10 to a larger number for a longer input period
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Sun Feb 17, 2008 4:32 am

This is awesome, every bit of it. Thank you, Vinny.

For custom movement, Ashley mentions a 'time delta' routine. I am blind to programming techniques; is there any demonstration of that method here?
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Sun Feb 17, 2008 4:38 am

heh, no problem. i want to know if there is anything i could improve on though, like putting in more or less detail in the explanations, what i should focus on more, etc.
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Sun Feb 17, 2008 4:47 am

I think it's very well-documented. I'm curious about the detectors, though. Is it possible to forgo them entirely by using "Sprite.Left" and "Sprite.Right" positions instead, algorithmically?
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Sun Feb 17, 2008 4:59 am

to be honest, i don't know all of the functions available in construct so just play around with the events, conditions, and actions and if you find that something could be accomplished more efficiently, please, let everyone know!
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Sun Feb 17, 2008 5:05 am

Yeah, I have it working that way, but the collision only recognizes the first wall object. Free of detectors, with leftmovement, checking that Sprite.Left is 'different to' Wall.Right correctly stops movement when hitting the left wall. The right wall however is simply passed through, because it's checking on the Wall.Left of the wrong wall object. Unless one wished to have distinct left and right wall objects, is there any way to solve this?

Something that references all instances involved...
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Sun Feb 17, 2008 5:10 am

i can't seem find the Sprite.Left, Sprite.Right, etc functions? where are they?
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Sun Feb 17, 2008 5:14 am

You can just type them, but if you're going through the bottom object thingy in your event window, they're called "Get X position of * edge"... I'm thinking that if you nest some loops into movement to test overlap of objects, then individually test the edge positions, it could work? Will try it, but really don't know if it's any more efficient to introduce new queries.

Edit: Okay, I figured out a way to do it without either system. Dunno if it's accurate, but the result looks fine to me.

http://www.mediafire.com/?6lgnlltt21j
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest