Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest None
Most users ever online was 78 on Wed Jul 03, 2019 3:37 pm
Log in
Statistics
We have 19 registered usersThe newest registered user is jamimwethe
Our users have posted a total of 390 messages in 84 subjects
Search
CP Clock
Off topic: How to make a platform game
Page 1 of 1
Off topic: How to make a platform game
This isn't for CP but this is how to make a platform game.
1. Open Game Maker. Make sure advanced mode is enabled. Downloaded Game Maker from YoYo Games if you don't have it.
2. Make a sprite called Bloca. This will be a black square.
3. Make an object called Parare. Make it solid. Make its sprite Bloca.
4. Make an object called Ougedor. Make its sprite Bloca.
5. Make a step event in Ougedor. Click "control" and drag in the folded piece of paper that is in a gray square.
6. Paste this in:
7. Press OK and make a collision with Parare event.
8. Click "control" and drag in the same folded piece of paper.
9: Paste this in:
10. Press OK and press OK again.
11. Make a new room with a lot of the Parare object and one Ougedor.
12. Have fun.
1. Open Game Maker. Make sure advanced mode is enabled. Downloaded Game Maker from YoYo Games if you don't have it.
2. Make a sprite called Bloca. This will be a black square.
3. Make an object called Parare. Make it solid. Make its sprite Bloca.
4. Make an object called Ougedor. Make its sprite Bloca.
5. Make a step event in Ougedor. Click "control" and drag in the folded piece of paper that is in a gray square.
6. Paste this in:
- Code:
if place_free(x,y+1) {gravity = 0.5}
else {gravity = 0}
if vspeed > 8 {vspeed = 8}
if keyboard_check(vk_right) && place_free(x+4,y) {x+=4}
if keyboard_check(vk_left) && place_free(x-4,y) {x-=4}
if keyboard_check(vk_up) && !place_free(x,y+1) {vspeed=-8}
7. Press OK and make a collision with Parare event.
8. Click "control" and drag in the same folded piece of paper.
9: Paste this in:
- Code:
if vspeed > 0 && place_free(x,y+hspeed){move_contact(270)}
vspeed=0
10. Press OK and press OK again.
11. Make a new room with a lot of the Parare object and one Ougedor.
12. Have fun.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|