[behavior] rex_LJpotential (attracting or rejecting objects)

Post your completed addons to share with the community

Post » Tue Dec 30, 2014 5:48 am

This is truly Epic Rex!
Going to have a lot of fun creating a game with this Behavior!
Thank u!
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Tue Dec 30, 2014 8:52 am

@rexrainbow

I cant find a way to switch off the behavior at runtime.
I want to be able to switch between this and other behaviors, like physics etc.
Any tips?
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Tue Dec 30, 2014 9:36 am

@Savvy001

It does not need to be turned off.
This behavior only runs while calling "Action:Update". And this behavior does not change position and angle. Designer need to set them manually.
B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

Post » Tue Dec 30, 2014 10:46 am

Ok thanx for the explanation.
B
59
S
21
G
14
Posts: 779
Reputation: 13,927

Post » Fri Jan 23, 2015 9:04 pm

Thanks @rexrainbow :)
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Sat Jan 24, 2015 8:53 am

Hey @rexrainbow, im trying to use this to make my ufos chase the player but avoid the planets.. (ie go around them better). The thing is it seems I set the properties at Runtime on the planet (the planets are created at runtime) to:

Source: Yes
A: 0
n: 0
B: Planet.Width*2
m: 1
Sensitivity: 300
Target: No

But it seems it ignores my settings and go with the default ones assigned to initial object (in the layout).. am I doing something wrong there? Can I assign those properties at runtime?

Thanks for your great work. You are definitely in the credits as a programmer on Cosmochoria haha :)
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Sat Jan 24, 2015 2:35 pm

@80bit

Yes, you could assign these parameters at runtime, there had a bug which already fixed.
So you might check it again, or could you please provide a very simple capx to show this problem?
B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

Post » Sat Jan 24, 2015 6:03 pm

Hmmm i think once i started playing with teh ranges it worked a lot more to what i was after, i toyed with the sensitivity range on the ufo itself and that seems to have helped quite a bit. Thanks for this amazing plugin man, you made my UFO ai so much more sophisticated haha :D
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Thu Feb 19, 2015 12:41 am

@rexrainbow - it seems theres a bug with LJPotential breaking the C2 "save game" feature. To reproduce bug:

1) Add LJPotential to an object's behaviors
2) Try to save the game (with a keyboard press or something)
3) Gives an error.

Here's a capx with the issue. Press "Enter" to save the game: http://d.pr/f/wH1K/2vV8bHeD

Removing LJPotential from the objects behaviors causes the save game to operate normally.

Is there any way to fix this? Thanks for your great work!
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Thu Feb 19, 2015 1:45 am

Update
Fix bug when official saving.

@80bit
Thanks for finding this bug.
B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests