Shorter way to code this?

Get help using Construct 2

Post » Thu Oct 03, 2013 2:13 am

Hello all,

This is my first post and I am very excited to be joining the community and making games myself. I'm still trying to figure out how Contruct 2 works and don't have a clear idea of what kind of game I want to make yet. I made this test app which has a test character in the middle and keyboard arrow keys move the character around. Trying to create a character and when the user presses the arrow keys the character turns in that direction and moves. Here is my project testing this out: https://www.dropbox.com/s/2prlkyeotratxie/test.capx. I got it working myself, but I was hoping that someone with more experience can take a double check at the events I used to see if this is the right way to do such a thing. Seems like alot of lines of "code" for such a simple action but maybe this is how it works. Again I got the end result I wanted but am just looking to see if maybe there is another way of doing such a move. Thanks for any help.

-Mike
Image
MIKE ASCHENBRENNER | RCMADIAX
Twitter/Instagram/Vine: @RCMADIAX
B
35
S
7
G
4
Posts: 186
Reputation: 4,574

Post » Thu Oct 03, 2013 4:06 am

Yes there is a MUCH easier way to do this.

You should check out the tutorial Ghost Shooter. It's exactly what your looking for.

For what you did. You can do 0 events. I extremly strongly suggest going though the tutorial mentioned.

Number one tutorial that all new developers should read. it will answer many questions and gve incredible insight on how C2 works. I did what you did trying to muddle my way through the tools, but after reading this tutorial I've managed to figure out most of my problem on my own.


https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2jayderyu2013-10-03 04:08:37
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Fri Oct 04, 2013 5:08 am

That worked great, Thanks!
Image
MIKE ASCHENBRENNER | RCMADIAX
Twitter/Instagram/Vine: @RCMADIAX
B
35
S
7
G
4
Posts: 186
Reputation: 4,574

Post » Fri Oct 04, 2013 5:32 am

Welcome to the community! I would highly suggest working through the tutorials, reading the manual and then starting by cracking open some of the samples that ship with Construct 2. That will eliminate about 90% of the questions you will have when starting out, and ensure that you are asking questions that will get you maximum return. Can't wait to see what you do with Construct 2.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests