Jump to content


Photo
- - - - -

Character Select Screen Tutorial


  • Please log in to reply
10 replies to this topic

#1 ROFLCOPTERNZ

ROFLCOPTERNZ

    GMC Member

  • New Member
  • 23 posts

Posted 13 June 2011 - 02:55 AM

  • Title: Character Select Screen
  • Description: For people having trouble with the character select screen
  • GM Version: 7
  • Registered: N
  • File Type: GMK
  • File Size: N/A
  • File Link: Link coming soon
Additional Info
Welcome! Names ROFLCOPTERNZ. I recently came on for help on my game....It's a Super Smash Bros game, please Pm me if you want to help...Anyway, looking around and I couldn't find how to put a character select screen into my game! So I decided to create my own tutorial and hopefully it will help you!

So...This is a tut about how you can insert a character select screen into your game. Just like the one in those fighting games. Tekken, to be exact uses a cs screen as well as many other fighting games. You to can create a cs screen if you follow these steps...

To begin,
get your images you want for your character select screen. Your images will possibly be the face of the character you want to play as. For example, Samus (image below) is a character you play as in my game, so therefore he is in the cs screen.


Posted Image

Make them into objects and add the collision code. By that I mean, create a new object. Name it obj_*yourchar*, and give it your sprite image (The face that you want to show in the screen). Add a collision event with the mouse or object you use to scroll around the screen. In action, add the "set variable" and give the following data:

global.mychar to 1

use the image below for help

Posted Image


Create a new object(Doesn't need a sprite). Name it obj_starterdude. Under a "Create Event" add actions "test variable" with code:

If global.mychar is equal to 1

Then in a "change instance" action:

change instance into obj_*yourchar*

Posted Image

Place the new object into the game room. When you select 'mario' you will change into mario, 'link' you will change into link etc. So basically, the obj_starterdude will change into whoever is selected in the cs screen and will appear in the game room.

Posted Image
Posted Image

So...
That is how you add a select screen...C&C is welcome!!!

Edited by ROFLCOPTERNZ, 14 June 2011 - 05:58 AM.

  • 0

#2 CraigR97

CraigR97

    GMC Member

  • New Member
  • 2 posts

Posted 14 June 2011 - 02:08 PM

so therefore he is in the cs screen.


Umm... Samus is a girl, did you know that? :lol: Nah, just messing with ya', but seriously though, go look it up.
  • 0

#3 MorganVogel

MorganVogel

    GMC Member

  • New Member
  • 110 posts

Posted 14 June 2011 - 05:24 PM

nice... canīt wait for the download link :)
  • 0

#4 beeproductions

beeproductions

    Helping gmc users

  • GMC Member
  • 1132 posts
  • Version:GM:Studio

Posted 15 June 2011 - 06:23 AM

Nice one but I find the"comming soon"kinda..uh wrong?!:)Doesn't supposed to have already a link?
  • 0

#5 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14392 posts
  • Version:GM:Studio

Posted 15 June 2011 - 06:31 AM

Nice one but I find the"comming soon"kinda..uh wrong?!:)Doesn't supposed to have already a link?


I have approved this tutorial without a dl example providing changes were made in the description on how it works as it is quite simple and a sound concept easily reproduced , changes were made; not an issue even if a gmk is not eventually posted.
  • 0

#6 Bird99

Bird99

    GMC Member

  • GMC Member
  • 17 posts

Posted 16 June 2011 - 11:08 PM

Yeah not to shoot in another direction but Samus is a girl.
  • 0

#7 Koran

Koran

    Level Design Specalist

  • New Member
  • 608 posts

Posted 21 June 2011 - 11:13 AM

Protip: Use GML, you could have done that wall of blocks much easier with a switch statement. Even better, you possibly could have assigned an array loop...

Still, seems functional :)
  • 1

#8 asian_camel_57

asian_camel_57

    GMC Member

  • New Member
  • 1 posts
  • Version:GM8

Posted 23 May 2012 - 10:57 AM

Thank for your help! Just saying, if you dont have two players then all you have to do is go to next room after set variable global.mychar to 1 on the obj_character_select. Anyways, you have helped me a lot :smile:
  • 0

#9 LukeDodds

LukeDodds

    GMC Member

  • GMC Member
  • 28 posts
  • Version:GM8

Posted 08 November 2012 - 03:48 PM

When i tired this out I got this:

___________________________________________
ERROR in
action number 1
of Create Event
for object obj_starterguy:

Error in expression:global.starterguy
position 8: Unknown variable starterguy

Please help?
  • 0

#10 ghosttheghost

ghosttheghost

    GMC Member

  • GMC Member
  • 16 posts
  • Version:GM8.1

Posted 14 November 2012 - 06:46 AM

Awesome! :biggrin:
  • 0

#11 Uwould222

Uwould222

    GMC Member

  • New Member
  • 4 posts
  • Version:Unknown

Posted 19 May 2013 - 03:24 AM

When i did this the AI for my enemies didn't work. They were previously only 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users