5 Replies - 7172 Views - Last Post: 18 October 2009 - 08:21 AM Rate Topic: -----

#1 peijian88  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 3
  • Joined: 15-October 09

how to make random selection in game maker

Posted 15 October 2009 - 05:51 AM

how to make coding for random selection?
Is This A Good Question/Topic? 1
  • +

Replies To: how to make random selection in game maker

#2 Aeternalis  Icon User is offline

  • D.I.C Regular

Reputation: 28
  • View blog
  • Posts: 291
  • Joined: 13-July 09

Re: how to make random selection in game maker

Posted 15 October 2009 - 06:06 AM

View Postpeijian88, on 15 Oct, 2009 - 04:51 AM, said:

how to make coding for random selection?


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.


Thank you for helping us helping you.

Aet

This post has been edited by Aeternalis: 15 October 2009 - 06:09 AM

Was This Post Helpful? 0
  • +
  • -

#3 peijian88  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 3
  • Joined: 15-October 09

Re: how to make random selection in game maker

Posted 15 October 2009 - 06:17 AM

View Postpeijian88, on 15 Oct, 2009 - 04:51 AM, said:

how to make coding for random selection?

not me dont want write the code....i dont know how to write and writte at where?
Was This Post Helpful? 0
  • +
  • -

#4 peijian88  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 3
  • Joined: 15-October 09

Re: how to make random selection in game maker

Posted 15 October 2009 - 06:33 AM

View PostAeternalis, on 15 Oct, 2009 - 05:06 AM, said:

View Postpeijian88, on 15 Oct, 2009 - 04:51 AM, said:

how to make coding for random selection?


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.


Thank you for helping us helping you.

Aet

not me dont want write....is i dont know how to write the code...

View Postpeijian88, on 15 Oct, 2009 - 04:51 AM, said:

how to make coding for random selection?


not me dont want to write...is i dont know how to write..
Was This Post Helpful? 0
  • +
  • -

#5 sparkart  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 113
  • View blog
  • Posts: 688
  • Joined: 16-February 09

Re: how to make random selection in game maker

Posted 16 October 2009 - 06:47 PM

The simplest way to achieve this is by using the choose(...) function in Game Maker 7.

var i;

i = choose(1, 2, 3, 4, 5);

switch (choose)
{
	case 1:
		...
	break;

	case 2:
		...
	break;

	...
}

Was This Post Helpful? 0
  • +
  • -

#6 Sinnner  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 223
  • Joined: 24-July 09

Re: how to make random selection in game maker

Posted 18 October 2009 - 08:21 AM

Wow, that's my area of expertise!Posted Image But I'm not sure what you mean? You mean choosing destroy_object(random)? That's not code o.O. Just wanted to know what you mean! And GMC is better for GM related questions
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1