Jump to content


Photo

Create wrong object/sprite


  • Please log in to reply
1 reply to this topic

#1 mick1001

mick1001

    GMC Member

  • GMC Member
  • 136 posts

Posted 24 March 2012 - 04:05 PM

Hey

I tried to look around in the forum but could not find something like my problem.

When I press left mouse bottom, I should create a piece of road.

It does it, when I run it in windows, but when I switch to HTML, then it create the car instead.

I tried to delete the car object and sprite, and it still create the car. . .


Mick
  • 0

#2 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1414 posts
  • Version:Unknown

Posted 27 March 2012 - 12:36 PM

You are probably using a number for the id of the sprite you are using - on GM:HTML5 and GM:S the rules changed so you need to use the correct name for the sprite or background that you want not a hard coded number - so if you want to create a section of road (and the object name is oRoad) then you should use instance_create( oRoad ) as between 8.1 and HTML5 or Studio the numbers will be different.

Russell
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users