Hi All,
I am new to unity and trying to follow the 2d tutorial that is available here
I am struggling , can someone explain how do I create a new platform as mentioned on page 15
any help will be much appreciated
thanks
basit
Hi All,
I am new to unity and trying to follow the 2d tutorial that is available here
I am struggling , can someone explain how do I create a new platform as mentioned on page 15
any help will be much appreciated
thanks
basit
The “How to add a platform” stuff begins on Page 13. You just drag a platform Prefab from the Project Pane into the Scene and set its Transform coordinates to make sure it sits properly in the level. (Specifically, you need to set its “Z” coordinate to zero as you’re making a 2D, not 3D, game here, so only two of the coordinate axes—X and Y—are being used.)
What, exactly, is the problem you’re having?
Thankyou for the reply
I have got the platform in place. However, I have two questions
It says Green rectangle is the size of the level, How? can you explain. Also what are those parallel green lines for, it says those are for keeping the character from going out of bounds, yet it doesn’t correlate to the green rectangle. Its confusing
It says Using
these
platform
tiles,
create
more
platforms
for
your
character
to
run
wild!
should i just make copies of the tiles (i assume tiles means those square pieces) and do i need to keep them within the rectangle?
The smaller rectangle that sits in the X-Y plane defines where the level’s edges are, so the camera knows when to stop moving.
The large rectangle across the bottom of the level bounds rectangle defines an area that automatically “kills” the player. (it’s much larger than it needs to be, but this doesn’t matter.) If the player leaps off a platform into the air and misses his target, he might fall off the ‘bottom’ of the level. Without this bottom “kill box”, the player character would just keep falling forever as Unity has no idea he isn’t supposed to do this. So as soon as Lerpz (or his spaceship) enter this box, he’s automatically ‘killed’ and re-spawned at a suitable spawning point.
Yes, you can just drag fresh Prefabs from the Project Pane. (Look under “Pre-Assembled Platform” for individual platform components.) Just drag them into the Scene, set their “Z” value to zero in the Transform box to pin them to the game board, and drag them into position.
The platform components are designed with dimensions that are integers—i.e. whole numbers—to make them easier to line up with other platforms. There’s no platform editor as such in this tutorial; you’ll have to line them up by dragging them around and / or setting X and Y coordinates in the Transform part of the Inspector. (The latter is often quicker once you get the hang of it, though it does require a bit of mental arithmetic.)
Would I be correct in assuming English is not your first language? I only ask because everything I’ve written above is also written in that tutorial. If you’re not a native English speaker, consider improving your English skills as almost every tutorial you’ll find online will be in that language. Almost every programming language in existence—including all three languages supported by Unity—assumes the programmer understands English, so this is currently unavoidable.
Thanks for your reply.
This is nothing to do with English, I know that everything is in the tutorial but its quite frustrating when you are a beginner.
It doesnt tell you to duplicate the tiles - It DOESNT mention this
It doesnt explain well the rectangle. it tells you its to do with level size thats it, more detail would have been helpful
It doesnt tell you in detail about the parallel lines like why we have to sets off parallel lines.
May be you are experienced on this platform but for new comers this can be daunting.