Random Movement?

New releases and general discussions.

Post » Sun Oct 05, 2008 10:05 pm

I was wondering if this could possibly be added as a checkbox option for the 2/4/8 direction movement systems. It might help save people some time depending on what game they are making.

-thanks!
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Sun Oct 05, 2008 10:19 pm

Um... what would it do?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sun Oct 05, 2008 11:58 pm

It would make the object/person move around the screen randomly, preferably in some kind of an intelligent manner (not continuously running into a wall). It would be useful if you want to add a bunch of NPC's that don't need to follow a specific path.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Mon Oct 06, 2008 12:16 am

That's a very vague definition. You can't just bolt on 'intelligent' movement in a generic way. What exactly are you after?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Oct 06, 2008 12:42 am

I was thinking of something similar to how towns in RPGs have villagers who wander around randomly.
They usually stick around the same general area but they never just stand still or only walk in one direction. Maybe it could be a seperate behavior?

Then again, I'm not sure if many other people would have a need for it. Maybe I should just event it myself.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Mon Oct 06, 2008 2:43 am

It should be relatively easy to code it yourself, perhaps in conjunction with the rts object
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Post » Mon Oct 06, 2008 3:22 am

[quote="Arcticus":2frio4it]It should be relatively easy to code it yourself, perhaps in conjunction with the rts object[/quote:2frio4it]

Yeah, wait x milliseconds and if nothing is occupying the same space, turn 90 degrees and walk for another x milliseconds, then check the space around you again and turn another 90 degrees, etc. Wouldn't take long to get it right.

I was just kind of thinking; "Too bad there isn't a 'random movement' button' to make things faster." :oops:
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Mon Oct 06, 2008 3:27 am

While it would be handy, it's really for specific cases, not all games have the same view or movement or anything, i think that it might be possible, especially in the rts behaviour's case, but a more realistic view would be coding your own unfortunately
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Post » Mon Oct 06, 2008 11:19 am

Speaking of which... PATH BEHAVIOR
I think someone already suggested this movement, how's the plan of making it ? :D
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Mon Oct 06, 2008 1:47 pm

[quote="Doppel":2pqptet0]Speaking of which... PATH BEHAVIOR
I think someone already suggested this movement, how's the plan of making it ? :D[/quote:2pqptet0]
Yeah I have to second this. It would help in a lot of cases that I have been using in the past, as well as my current project. Trying to set inital X and Y coordinates, and blah blah blah.... it's harder than it should be, but still possible. A path movement behaviour would rock.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 6 guests