The wonderful world of Vectors

Chat about anything not covered in these forums, but keep it civil!

Post » Fri Jul 09, 2010 12:39 am

[quote="David":pna90mpe]...only to realise you cant store arrays in private variables without a crash...bloody developers should fix that bug![/quote:pna90mpe]
Now there's a bug that WILL get fixed!

:wink: :lol: :lol:
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Mon Jul 19, 2010 1:07 pm

Vector math functions would be very usefull in playing with advanced physics.
BTW: I would also want to see vector graphics implementation in scirra, any plans on it?
B
5
S
1
G
2
Posts: 70
Reputation: 1,140

Post » Mon Jul 19, 2010 1:27 pm

I've got a request davo,
Can you overload some of the stuff so you can use sprite names in quotes in place of x,y as a shortcut to sprite.x,sprite.y?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Jul 22, 2010 3:56 pm

lucid what do u mean? Can u give an example?
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Thu Jul 22, 2010 7:36 pm

You know, reading the original post again, I suppose my request makes no sense, since you'll always be referring to the vector as a single value, rather than an xy pair. I think I misunderstood when I posted that

The only instance where it makes sense would be to be able to set vector position to a sprite position,
So aside from actions:
Set vectorx to sprite.x
Set vectory to sprite.y

Just set vector position to object - sprite

Also the regular angle actions would be convenient, too like
Set angle towards position, or towards object
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Jul 31, 2010 5:49 pm

Ah I see, so

Set position of head to 'player'
Set angle of head to 'player'
Set width of head to 'player'
Set height of head to 'player'

In all those cases, the word 'player' would become:

player.position
player.angle
player.width
player.height

Thats actually a pretty cool idea, however, some plugins do overload their names, so using 'TextBox' infact means 'TextBox.text'

Still, thats a pretty interesting idea anyways. Perhaps an action such as 'width' can have some kind of declaration to describe to other plugins which expression they should attempt to use...eg:

for the action 'setWidth', if other object has a '.width' expression, use that when you type 'Sprite'
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sat Jul 31, 2010 6:23 pm

This would be awesome and make coding a lot easier, I honestly don't even understand cosine and sine. It would be wonderful if this was implemented. *nudge*
B
7
S
2
G
3
Posts: 139
Reputation: 2,331

Post » Wed May 04, 2011 10:50 am

can someone teach me how to start from beginning in making a slingshot game,? im just a newbie here.. can someone post a tutorials.. thx
B
1
G
1
Posts: 4
Reputation: 433

Previous

Return to Open Topic

Who is online

Users browsing this forum: Brenmac, Slenderman8557 and 0 guests