How do I use variables to set velocity for vector X,Y

Get help using Construct 2

Post » Wed Sep 06, 2017 11:38 pm

After reviewing the following Tutorial, https://www.scirra.com/tutorials/1335/u ... d-velocity

I'm trying to find the set position to action with no luck, I see set position to object but that is it. Also when they mention variables in the above tutorial is this a global variable? The functionality outlined in the tutorial is exactly what I'm looking for but I am having trouble setting this up with events.

Any information is appreciated!
B
5
Posts: 1
Reputation: 229

Post » Thu Sep 07, 2017 3:52 am

Variables velocityX and velocityY are instance variables.
Click on your sprite, you'll see "Instance variables" tab on the left panel.

Also, I should add that the above mentioned tutorial describes very basic movement. It helps to understand how things work, but you might get much better results with Bullet behavior or Sine or Car or Particles or lots of other behaviors/plugins.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
157
Posts: 2,212
Reputation: 83,505

Post » Fri Sep 08, 2017 10:58 am

Yeah... @Ropascucci, I'll have to agree with @dop2000 here. This tutorial seems to be a really complicated way to achieve something that several behaviors already do.

For instance, you could use 8 Direction behavior and the "Simulate control" to do exactly that.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 718
Reputation: 4,008


Return to How do I....?

Who is online

Users browsing this forum: Zed2100 and 9 guests