Text flips upside down

Get help using Construct 2

Post » Mon Dec 03, 2012 6:48 pm

Hi everyone,

I'm currently going through Udemy's class of creating games with construct 2 which by the way is pretty awesome. However, as I didn't receive an answer yet, I'd like to ask the pros here in this forum:

I have created a pretty simple shooter to mimic my problem. Once my bullet in the shooter hits the enemy it should destroy both, bullet and enemy, and spawn a text object "+10" to refer to the points achieved with that "kill". But when I run the game from Construct2 it simply flips my text "+10" upside down and it moves in strange angles. Any ideas how to solve that problem? I have uploaded a capx file for demonstration purposes:

http://dl.dropbox.com/u/1963726/pointsRiseProblem.capx

Thanks in advance for your kind support.

Phil
B
5
Posts: 15
Reputation: 485

Post » Mon Dec 03, 2012 7:21 pm

okay there'st wo reasons why

first, using the action 'object|spawn' instead of 'system|create' also automatically sets the angle of the spawned object to the same as the parent object, which is why they were angled to around 180 degrees.. the enemies are angled that way when they head towards the player.

so instead of spawn use   
     >system | create object 'pointRise' on layer 0 at (enemy.x, enemy.y)

secondly you've given each pointrise the 8direction behaviour, which means you are controlling all of them with the movement keys at the same time you are controlling your ship! so just delete that behaviour from pointrise

one more thing, you should read the manual entry about DT or Delta time...
basically any constant movement such as "every tick > move forward 3 pixels" or "move 5 pixels at angle 270" should be multiplied by DT to compensate for any frame rate jitter. (otherwise if the frame rate dips from 60 to 30, objects will move half the speed.. which is bad)
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Mon Dec 03, 2012 7:28 pm

that was not only extremely helpful but also very informative (regarding the DT)and lightning fast.

Thanks a lot!

Phil
B
5
Posts: 15
Reputation: 485

Post » Mon Dec 03, 2012 10:53 pm

That is a REALLY expensive course.
B
40
S
12
G
7
Posts: 603
Reputation: 7,646

Post » Tue Dec 04, 2012 10:05 am

[QUOTE=EncryptedCow] That is a REALLY expensive course.[/QUOTE]

It is indeed but I got it at a discounted rate for around $150 which is a good deal for the wealth of information (covers also Illustrator graphic design for games and creating music with FL Studio for games).

But you're right, I wouldn't have paid those 300+ bucks.
B
5
Posts: 15
Reputation: 485

Post » Mon Jan 21, 2013 9:02 pm

Hello everyone,

For those who might be interested, I just noticed that this Udemy course is currently on sale for 125$ (use code: 125). There is a total of 432 short lectures.

B
25
S
8
G
1
Posts: 13
Reputation: 3,133


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests