AI using platform movement

For questions about using Classic.

Post » Fri Mar 14, 2008 12:46 am

Is there a way to use the platform movement for the AI. Like ignoring the keypresses, but being able to simulate a keypress with an event? I'm about to try some AI things out!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Fri Mar 14, 2008 8:44 am

Im afraid its impossible unless it will be only one AI becouse there is only one Platform control. And simulating keypress, not available yet.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Fri Mar 14, 2008 1:26 pm

Not currently.

I've requested a couple features that might make it possible, but haven't gotten any response from Ashley. Hey Ash, if you're reading this, whaddaya say? :D

[quote="Doppel":3c2euwim]Im afraid its impossible unless it will be only one AI becouse there is only one Platform control. And simulating keypress, not available not.[/quote:3c2euwim]

Actually, you can set "start ignoring user input" on any enemy that has platform movement, and it won't interfere with the player's movement. Here's a demo .cap that shows it in action:

[url:3c2euwim]http://www.mediafire.com/?mqbzm0xbaxy[/url:3c2euwim]

The red square is the player, and the blue square is the AI. Every two seconds, the blue square jumps on it's own.

With the addition of a couple actions to the platform movement it would be possible to give the blue square lateral speed. Here's the total shopping list:

1. Set X speed (make it move)
2. Set max speed
3. Set gravity
4. Set jump strength
5. Set jump sustain

With these actions it would also be possible to change the player's control scheme at runtime. You could have powerups that change your jump or speed, create swimming areas, springboards, conveyor belts, or even in-game cut scenes.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Mar 18, 2008 3:51 pm

Wonderful! And ashley even gave you all those things you requested!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Tue Mar 18, 2008 5:45 pm

[quote="Attan":90abuc0t]Wonderful! And ashley even gave you all those things you requested![/quote:90abuc0t]

I know!

Hell, he even threw in gravity direction, man.

I swear, I might have nothing to do with making Construct, but I actually feel like I do, you know what I mean? I think everyone here should. The Construct community might be small right now, but I've never seen such a phenomenon where everyone had a voice and pitched in on a project like this. I think, in no small part, that smallness has a lot to do with it.

We few, we happy few, we band of brothers,
For he today that sheds his blood with me
Shall be my brother. Be he ne'er so vile,
This day shall gentle his condition,
And gentlemen in England now-a-bed
Shall think themselves accursed they were not here,
And hold their manhoods cheap whiles any speaks
That fought with us upon Saint Crispin's day.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Mar 19, 2008 1:01 am

Yeah i agree. I think i'm becomming a spoiled brat when it comes to this. Now when i come up with an idea, and realise it isn't possible with the current version of Costruct, I just ask for it and get it a few weeks later!

Also, immagine in a few years when Costruct is the leading game development program. Immagine being able to say "That thing was my idea. And that thing too, and the little addition over there..." :mrgreen:
B
8
S
2
G
5
Posts: 744
Reputation: 3,288


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest