Akbaboy CP Universe
Welcome to Akbaboy CP Universe. Please sign up if you don't have an account. Log into your account if you already have one.

Join the forum, it's quick and easy

Akbaboy CP Universe
Welcome to Akbaboy CP Universe. Please sign up if you don't have an account. Log into your account if you already have one.
Akbaboy CP Universe
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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

I forgot my password

Statistics
We have 19 registered users
The newest registered user is jamimwethe

Our users have posted a total of 390 messages in 84 subjects
Search
 
 

Display results as :
 


Rechercher Advanced Search

CP Clock
Visit Count
free counters

Off topic: How to make a platform game

Go down

Off topic: How to make a platform game Empty Off topic: How to make a platform game

Post by Akbaboy Sat May 15, 2010 9:31 am

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:
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.
Akbaboy
Akbaboy
The Ultimate Penguinistrator
The Ultimate Penguinistrator

Posts : 162
Coins : 2147234
Popularity : 5
Join date : 2010-02-13
Age : 32
Location : In your bedroom

https://akbaboycpuniverse.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum