more advanced nub questions

Get help using Construct 2

Post » Mon Mar 26, 2012 6:26 pm

Ok I looked at the tutorials on all of these to no avail



1: how do you remove revolute joints? I want my rider to fly off of his hover bike but I dont see a remove revolute joint event
is this something I need to buy standard C2 to get?

2: real car physics ( top down view):
Ok I dont get the point of the car driving behavior, it is not realistic, you run in to walls and just bounce off,
So i tried adding some physics and when I run into things I just sort of start spinning endlessly, there doesnt seem to be a way to apply friction ( in a top down sense)
ie as if driving on a road

3: Stopping rotate velocity gradually:
I checked on several physics based tutorials and nothing went over things ( this applies again to my hover vehicle)
I set degrees 4 to (0 rotation) as well as angular dampening so my hover bike stabalizes and evens out when you are hovering up, but it doesnt get rid of its current rotating velocity, when I stop, when I stop hovering it goes back into it spin
( its ok if it rotates ) but I dont want it to start spiralling out of control, especially after I hover it to stabalize to a certain rotation
hope that made sense,

in in other words I want to slow down my spinning velocity, and keep it that way, simply changing my rotation to a certain point doesnt work


4: What happend to my scrolling?, no its not parallax, but for some reason I must of accidently hit something and now my objects dont scroll all the way( so if my object is at the bottom of the screen I can no longer see it)
I set it to scroll out of bounds etc, its very frustrating =/ it was working, and now its not



5: Looked at all the tutorials on this, and the manual, I didnt see anything on it, basically I was trying to make a line of site check, I spawn a line of site object, have it rotate to the target, then in another action have the line of site object test for a collision test

on the walls, so far so good, but how do I have the line of site tell the specific enemy lineofsite = true, I tried several ways to have the line of site target its own specific checker as there are multiple enemies checking a line of site, I tried having the line of site change variable of the checkers unique ID, to target its variable to say line of site = true
hope that made sense,

Sorry to bombard the forum with question, but I didnt see these in the tuts anywhere.
cs2curious2012-03-26 18:26:50
B
9
S
4
G
3
Posts: 223
Reputation: 3,433

Post » Mon Mar 26, 2012 7:40 pm

1. There is no action for it. Destroying one of the objects would destroy the joint. One idea that may work is to destroy and recreate an object and then recreate non-broken joints. It's just an idea, I haven't tested to see if it would work.

2. I haven't used that behavior that much. A more realistic motion could probably be done with the physics behavior. How? A google search of "2d racing physics" result in some approaches that could be adapted to Construct. Also you could look at the "Your Creations" section and see if anyone else has come up with a good solution.

3. Try this:
Set Physics angular velocity to self.Physics.AngularVelocity*0.9
Change 0.9 to a smaller number for faster damping.

4. Try setting "Layout properties"->"Unbounded scrolling" to Yes.

5. From this post here are two examples of how to do LOS:
http://www.scirra.com/forum/c2enemy-line-of-sight_topic45095.html
http://www.scirra.com/forum/topic46730.html
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219

Post » Mon Mar 26, 2012 7:55 pm

Thanks il try those and get back to you :P
on 5: I got a bunch of weird non related results when searching line of site, thanks ^_^
B
9
S
4
G
3
Posts: 223
Reputation: 3,433

Post » Mon Mar 26, 2012 8:13 pm

It's probably because it's spell "sight" and not "site", which indeed isn't related.

You could also have had a look at the how do I FAQ where the links rojo gave you are also listed amongst many other useful things.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Tue Mar 27, 2012 5:51 pm

Thanks for replies
3: thanks that helped a lot
4: That didnt work at all, i deleted the project and started over, it was obviously corrupt =/
5: thanks, those didnt however explain how to detect line of sight with (multiple) enemies ( one of them was for old construct), but I figured it out ^_^ and without families too 0.0cs2curious2012-03-27 17:52:13
B
9
S
4
G
3
Posts: 223
Reputation: 3,433


Return to How do I....?

Who is online

Users browsing this forum: Walessio, Yahoo [Bot] and 18 guests