Path movement, Counter, Gamepad, Hiscore

New releases and general discussions.

Post » Mon Jan 25, 2010 11:36 am

A few things which should be included/ supported...

Path movement for Sprites
Counter Object
Gamepad support
Hiscore object...

Or are they already included and I don't know where to find them? :mrgreen:
B
1
G
2
Posts: 6
Reputation: 637

Post » Mon Jan 25, 2010 12:05 pm

Path movement should be a plugin or behavior, not necessarily just for sprites. It has been requested a few times. Would be nice to have.

Counters can be made with anything by adding and subtracting private variables. It is totally not necessary to have a separate counter object.

Gamepad support is a big thing. Currently there is none except for XBOX360 controllers. It's been requested a lot, and hopefully someone will make a plugin before 1.0.

Hiscore object? Why? What would it do that you can't already do with Construct? You could store your own high score info in a file with encryption if you wanted. You don't need a separate object for that either.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Jan 25, 2010 2:01 pm

[quote:3pg0y3m5]Counters can be made with anything by adding and subtracting private variables. It is totally not necessary to have a separate counter object.[/quote:3pg0y3m5]

There's one benefit TGF/MMF-style counter object would have compared to the other alternatives though, you could draw the numbers for it yourself, meaning you could have custom graphic -counters made with ease.

With Construct, to get custom graphic counters, you'd need to use the SpriteFont object, which has its own problems... I guess the best solution would be just to get a more working SpriteFont object, it'd solve this issue and offer more usability in general.
B
16
S
8
G
4
Posts: 136
Reputation: 3,144

Post » Mon Jan 25, 2010 2:06 pm

Wellokayfine you have a good point about the counter object :?
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Jan 25, 2010 2:38 pm

Yes, custom graphics for the counter... thats my problem at the moment too... :mrgreen:
Tonight I play around with the SpriteFont Object, maybe it works.
B
1
G
2
Posts: 6
Reputation: 637

Post » Mon Jan 25, 2010 3:22 pm

I was wanting to make a path movement behavior recently, but problems with the plugin SDK have been preventing me from setting up some necessary things. I'm gonna have to take it up with the developers at some point.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Jan 26, 2010 8:18 pm

:O what things?

I have a pretty clear idea of what I would like to see in a path plugin:

object, not behavior (so it can be used along with behaviors such as bullet, RTS and others)
representation on editor is an image, not visible in game. In the editor you would only be able to place the waypoints, linking them would have to be done in runtime using UID (though an ini-based waypoint editor that sets them up would be cake)

attributes:
[list:1gu1il2m]
[*:1gu1il2m]x[/*:m:1gu1il2m]
[*:1gu1il2m]y[/*:m:1gu1il2m]
[*:1gu1il2m]radius: how far from the center is considered being AT a waypoint)[/*:m:1gu1il2m]
[*:1gu1il2m]outgoing: vector with ID of waypoints that can be reached from this waypoint and weight for that edge).[/*:m:1gu1il2m]
[*:1gu1il2m]Incoming: Internal vector like the outgoing vector, only with the incoming edges. Useful for defensive AI and such.[/*:m:1gu1il2m][/list:u:1gu1il2m]

actions
[list:1gu1il2m]
[*:1gu1il2m]add waypoint[/*:m:1gu1il2m]
[*:1gu1il2m]add incoming waypoint (by UID)[/*:m:1gu1il2m]
[*:1gu1il2m]add outgoing waypoint (by UID)[/*:m:1gu1il2m]
[*:1gu1il2m]pick next waypoint towards destination(this would be A* search)[/*:m:1gu1il2m]
[*:1gu1il2m]pick incoming waypoints[/*:m:1gu1il2m]
[*:1gu1il2m]pick outgoing waypoints[/*:m:1gu1il2m][/list:u:1gu1il2m]

conditions
[list:1gu1il2m]
[*:1gu1il2m]object is here (matches all waypoints that have a position within their radius)[/*:m:1gu1il2m][/list:u:1gu1il2m]

expressions
[list:1gu1il2m]
[*:1gu1il2m]get X[/*:m:1gu1il2m]
[*:1gu1il2m]get Y[/*:m:1gu1il2m]
[*:1gu1il2m]get radius[/*:m:1gu1il2m]
[*:1gu1il2m]get UID[/*:m:1gu1il2m][/list:u:1gu1il2m]

Thats what's in my head right now, however I'll finish 2.5d before tackling this. How does that compare to what you had in mind?
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Tue Jan 26, 2010 8:50 pm

I don't think they mean Path as in Pathfinding, but rather drawing a set path for objects to follow. A Pathfinding plugin like you're describing would be something totally different.

Anyway, if it's at all possible I think the IDE side of things should link the waypoints for you automatically. It would make the plugin much more intuitive for new users. One would sort of expect it to work that way, after all. Having to link your waypoints using events isn't very user friendly.

You could use the same sort of method that making custom masks for physics objects does, by having an "edit path" link in the properties.

Also, support for two kinds of paths would be nice... Loop (which would work exactly like the mask editor for physics, where it auto-closes a shape) and Line, which would basically make an open line.

As for movement along the two kinds of paths, Loop would default to tracing the path in one direction repeatedly and Line would default to a ping-pong sort of behavior back and forth from end to end. Again, I'm just thinking of ease of use here, as these are pretty much the most basic sorts of things that people are looking to use Path movement for.

I think a Path movement should also have an option to "Orient to Path," like Flash does. As in, the object will point along the path in the direction it's moving.

Oh, and some Exact and Interpolated settings. Exact would follow the path exactly as you drew it, with sharp corners. And Interpolated would make nice beziers through the corners.

Just throwing out ideas here, take them for what you will ;)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Jan 26, 2010 10:19 pm

Yeah whats needed is something that works like the timeline object.
Something where when you click the object a pop up window comes up, and you can input your coords.
You can actually do that now with the timeline object, but I think what people really want is a screen that pops up and you click on it to set your nodes. Of course as soon as we get that someone will ask for bezier curves... not that I blame them.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue Jan 26, 2010 10:55 pm

The path behavior I was planning would probably work similar to the custom collision editor for the physics behavior when it comes to point placement. But I was also planning on supporting branching paths and curved paths and stuff.

I really need to figure out what's up with the SDK so I can start work on it.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests